Giter VIP home page Giter VIP logo

pacscrollview's Introduction

PACScrollView

PACScrollView is a subclas of UIScrollView which allow you to add a background image, more or less blurred considering the scroll position.

PACScrollView demo

=========

Changes

v 1.0

  • First public release

v 1.0

  • Support for iOS 4 & 5 & 6 & 7

Getting started

The Pod way

Just add the following line in your podfile

pod 'PACScrollView'

The old school way

Drag and drop the category files in your project and you are done.

Using PACScrollView

Basic usage

First, import PACBlurryScrollView.h header in th e .h file.

XIB way :

just add a scrollView in your Xib file and change the class type to PACBlurryScrollView

then, add the following code

	[pacScrollView setBackgroundImage:[UIImage imageNamed:@"bg.jpg"]];

Code way

    PACBlurryScrollView *pacScrollView = [[PACBlurryScrollView alloc] initWithFrame:self.view.bounds];
    [pacScrollView setBackgroundImage:[UIImage imageNamed:@"bg.jpg"]];
    [self.view addSubview:pacScrollView];

Don't forget to add content to your scrollView !

Sample project

The sample project show how to use it with the Xib Way.

Requirements

PACScrollView requires Xcode 5 as it use Accelerate framework

ARC

PACScrollView uses ARC.
If you are using PACScrollView in a non-arc project, you will need to set a -fobjc-arc compiler flag on every PACScrollView source files.
To set a compiler flag in Xcode, go to your active target and select the "Build Phases" tab. Then select PACScrollView source files, press Enter, insert -fobjc-arc and then "Done" to enable ARC for PACScrollView.

Contributing

Contributions for bug fixing or improvements are welcomed. Feel free to submit a pull request.

Licence

PACScrollView is available under the MIT license. See the LICENSE file for more info.

pacscrollview's People

Contributors

claudot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.