Pinterest-like scroll-to-fullscreen UI for iOS5+.
From version 1.0.0, YIFullScreenScroll
uses JRSwizzle to extend UIViewController
's functionality, and KVO (Key-Value-Observing) instead of conforming to UIScrollViewDelegate
for easiler implementation.
There are slight changes in its APIs too, so please see header files for more details.
Install via CocoaPods
pod 'YIFullScreenScroll'
#import "YIFullScreenScroll.h"
...
- (void)viewDidLoad
{
[super viewDidLoad];
self.fullScreenScroll = [[YIFullScreenScroll alloc] initWithViewController:self scrollView:self.tableView];
self.fullScreenScroll.shouldShowUIBarsOnScrollUp = NO;
// self.fullScreenScroll.shouldHideNavigationBarOnScroll = NO;
// self.fullScreenScroll.shouldHideToolbarOnScroll = NO;
// self.fullScreenScroll.shouldHideTabBarOnScroll = NO;
}
YIFullScreenScroll
is available under the Beerware license.
If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.