UIView category which adds parallax effect to iOS prior to 7
Objective-C
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
UIView+MWParallax
iOS6 Parallax Demo.xcodeproj
iOS6 Parallax Demo
LICENSE.md
README.md

README.md

UIView+MWParallax

Parallax UIView category which can be used in iOS prior to 7 (tested with iOS 6.1)

It's as simple as setting UIView's (or it's any subclass) param iOS6ParallaxIntensity value to any other than 0.

For example:

self.label = [[UILabel alloc] init];
...
self.label.iOS6ParallaxIntensity = 15;

To use this you need to include CoreMotion.framework to your project.

This currently works only with ARC!

Credits: Thanks to gbammc (https://github.com/gbammc) for fixing issue #1