Added expand completion
This commit is contained in:
parent
b7beb2f8c8
commit
31dbd543ad
|
|
@ -77,7 +77,7 @@
|
|||
|
||||
@property (nonatomic) BOOL handleStatusBar;
|
||||
|
||||
- (void)expand;
|
||||
- (void)expandWithCompletion:(void (^)())completion;
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
|||
|
|
@ -424,10 +424,14 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage
|
|||
self.previousYOffset = NAN;
|
||||
}
|
||||
|
||||
- (void)expand
|
||||
- (void)expandWithCompletion:(void (^)())completion
|
||||
{
|
||||
[UIView animateWithDuration:0.2 animations:^ {
|
||||
[self cleanup];
|
||||
} completion:^(BOOL finished) {
|
||||
if (completion) {
|
||||
completion();
|
||||
}
|
||||
}];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue