• Stars
    star
    115
  • Rank 305,916 (Top 7 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created about 11 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

UIView category which adds parallax effect to iOS prior to 7

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