Add custom parallax to your apps in just a few small steps:
- Add CoreMotion to your project
- Import
NTParallaxStackController.h
to your target view controller's header - Create an
NTParallaxStackController
as a property - Instantiate the
NTParallaxStackController
- Add the
NTParallaxStackController
to your target view controller - Add
NTParallaxLayer
s to theNTParallaxStackController
-
- Update your frame of reference and display your view (by posting a notification called
@"resetFrame"
)
- Update your frame of reference and display your view (by posting a notification called
- You can have as many
NTParallaxStackController
s as you want. - Each
NTParallaxStackController
can have as manyNTParallaxLayer
s as you need.
(Follow me on Twitter @nicktitle)
This software is provided without any warantee or guarantees of any sort. If you use this library in your works, I only ask that you provide a link to this github repo so others can find it too!