/M6UniversalParallaxViewController

Primary LanguageObjective-CApache License 2.0Apache-2.0

M6UniversalParallaxViewController v.2.0

Easy to setup, lightweight and fully customizable component

  • Supports UITableView
  • Autolayout based
  • Setup in Interface builder

#New in version 2.0

  • Fixed behaviour of section headers (no subclassing is now required !!!)

  • Added the possiblity to scroll the table over the parallax view

  • min height parallax height added

  • UIScrollView is not longer supported in favour of UITableView (this was needed to get the section scrolling behaviour right) - if you need a scroll view, consider inserting it as UITableViewCell

  • Added

Mounting created Bloggif

#Usage

####Subclass your VC

@interface MyViewController : M6UniversalParallaxViewController

####Connect the outlets

@property (nonatomic, weak) IBOutlet UIView * parallaxContainerView;
@property (nonatomic, weak) IBOutlet UIScrollView * scrollView;
@property (nonatomic, weak) IBOutlet UIView * parallaxView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *parallaxContainerViewHeightLayoutConstraint;

#Notes

If you want to scroll the table by scrolling the parallax view, subclass the lowest view inside parallax view as M6TouchForwardView and set its forwardView outlet to the table view (this way, by scrolling the parallax view, you are also scrolling the table)

#Credits

min:60 - Building your mobile apps - http://min60.com

#License

Apache License 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt