Skip to content

A UIScrollview subclass with a high performance parallax scrolling effect

License

Notifications You must be signed in to change notification settings

fr0stevl/A3ParallaxScrollView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#What is A3ParallaxScrollView? 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.
ARC is not enabled for the project, but you can easily convert it to arc with the XCode built in ARC converter or by remove the dealloc method and the two or three release calls.
If you are too lazy for that, you can still set the -fno-objc-arc compiler flag.

##Video: 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.
A3ParallaxScrollView sample A3ParallaxScrollView Path like sample
Both sample projects are in the repository.

##Usage: Add the A3ParallaxScrollView directory to your project.
Initialize a A3ParallaxScrollView like any other View by code or in the InterfaceBuilder. Now 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

#License: See our BSD 3-Clause License

#Contribute: 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.

aaa - AllAboutApps
© allaboutapps 2012 dev by yinkou

About

A UIScrollview subclass with a high performance parallax scrolling effect

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published