TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Paul-Anatole CLAUDOT.
PACScrollView is a subclas of UIScrollView
which allow you to add a background image, more or less blurred considering the scroll position.
v 1.0
v 1.0
Just add the following line in your podfile
pod 'PACScrollView'
Drag and drop the category files in your project and you are done.
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 !
The sample project show how to use it with the Xib Way.
PACScrollView requires Xcode 5 as it use Accelerate framework
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.
Contributions for bug fixing or improvements are welcomed. Feel free to submit a pull request.
PACScrollView is available under the MIT license. See the LICENSE file for more info.