Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.11 KB

README.md

File metadata and controls

38 lines (24 loc) · 1.11 KB

Here is a better implemetation.

Why Use It

  • It helps you create a tableview(scrollview) with parallax effect, much like the top view of Path's timeline, by a easier way.

##What did i do

  • It's just a instance method of UIScrollView's category, so we can add the parallax effect naturally.

How To Use

//we get a tableView here, of course, any kind of UIScrollView class's object is fine.
UITableView* tableView = [self createTableView];
//get a parallax background view.
UIView * parallaxView = [self getParallaxView];
//that's all.
[tableView addForegroundView:[self getParallaxView]
            withWindowHeight:100
           dragDistanceLimit:0
              parallaxFactor:0.25];

Creator

Nicholas Tau

License

NTParallaxView is available under the MIT license. See the LICENSE file for more info.

Bitdeli Badge