MUKScrollTrigger
observes a UIScrollView instance and it monitors scrolled amount. When a threshold is passed, it triggers.
This mechanism could be used to achieve infinite scroll of a table view, for example.
self.trigger = [[MUKScrollTrigger alloc] initWithScrollView:scrollView test:^(MUKScrollTrigger *trigger) {
return trigger.scrolledFraction.trailing.height > 0.95f;
}];
[self.trigger addTarget:self action:@selector(scrollTriggerActivated:)];
- iOS 7 SDK.
- Minimum deployment target: iOS 7.
MUKScrollTrigger
is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod "MUKScrollTrigger"
Marco Muccinelli, muccymac@gmail.com
MUKScrollTrigger
is available under the MIT license. See the LICENSE file for more info.