Added delegate method to notify the client when the navigation bar became fully contracted.
This commit is contained in:
parent
2e065ac823
commit
983f632b76
|
@ -72,6 +72,7 @@
|
|||
|
||||
@optional
|
||||
|
||||
- (void)shyNavBarManagerDidBecomeFullyContracted:(TLYShyNavBarManager *) shyNavBarManager;
|
||||
- (void)shyNavBarManagerDidFinishContracting:(TLYShyNavBarManager *) shyNavBarManager;
|
||||
- (void)shyNavBarManagerDidFinishExpanding:(TLYShyNavBarManager *) shyNavBarManager;
|
||||
|
||||
|
|
|
@ -295,6 +295,11 @@ static inline CGFloat AACStatusBarHeight()
|
|||
scrollInsets.top = MAX(maxNavY, maxExtensionY);
|
||||
}
|
||||
if (!UIEdgeInsetsEqualToEdgeInsets(self.scrollView.scrollIndicatorInsets, scrollInsets)) {
|
||||
if (scrollInsets.top == AACStatusBarHeight()) {
|
||||
if ([self.delegate respondsToSelector:@selector(shyNavBarManagerDidBecomeFullyContracted:)]) {
|
||||
[self.delegate shyNavBarManagerDidBecomeFullyContracted:self];
|
||||
}
|
||||
}
|
||||
self.scrollView.scrollIndicatorInsets = scrollInsets;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue