CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2015 |
Maintained by Botond Kis.
A3ParallaxScrollView is a UIScrollView
subclass with a parallax scrolling effect on iPhone and iPad.
It is written in Objective-C and works for all iOS applications using ARC.
Here are two examples of the use of A3ParallaxScrollView.
The first is a little Demo with a lot of views and additional custom transformations (sine movement of the moon).
The other one shows a Path like scrolling behaviour.
Both sample projects are included in the github repository.
platform :ios, '7.0'
pod "A3ParallaxScrollView", "~> 1.0"
Download the A3ParallaxScrollView.h/.m
files and add them to your Project. There are no dependencies.
Include A3ParallaxScrollView by the folowing import.
#import "A3ParallaxScrollView.h"
Initialize a A3ParallaxScrollView like any regular UIScrollView
by code or in the InterfaceBuilder.
You can add any views to it with a specified acceleration:
- (void)addSubview:(UIView *)view withAcceleration:(CGPoint) acceleration
Or you can simply add a subview to your A3ParallaxScrollView and set his acceleration afterwards with acceleration setter.
- (void)setAcceleration:(CGPoint) acceleration forView:(UIView *)view
Feel free to fork and make pull requests! We are also very happy if you tell us about your app(s) which use this control.