Added expand completion

This commit is contained in:
Alexey Savin 2016-03-16 20:17:20 +03:00
parent b7beb2f8c8
commit 31dbd543ad
2 changed files with 6 additions and 2 deletions

View File

@ -77,7 +77,7 @@
@property (nonatomic) BOOL handleStatusBar;
- (void)expand;
- (void)expandWithCompletion:(void (^)())completion;
@end

View File

@ -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();
}
}];
}