TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Simon Westerlund.
KeyFrameFold is a tool to attach to your favourite UIScrollView, it can then be used to hide the UINavigationBar like Safari does on iOS7
Simply add SWKeyFrameFold.h to your project and in your -scrollViewDidScroll: use the following snippet.
[[SWKeyFrameFold shared] foldUsingScrollView:scrollView // 1
totalHeight:44 + 24 // 2
keyPoints:@[@0.0f, @44.0f] // 3
blocks:@[(SWKeyFrameFoldBlock)^(CGFloat percentDone, BOOL scrollDirectionDown, CGFloat totalPercentDone) {
NSLog(@"%f", percentDone);
},
(SWKeyFrameFoldBlock)^(CGFloat percentDone, BOOL scrollDirectionDown, CGFloat totalPercentDone) {
NSLog(@"%f", percentDone);
}]];