[FIX]: fixed demo project, and library issue.. I should've tested more!!
Thanks to NightIsland for reporting.
This commit is contained in:
parent
31cdc78869
commit
daa2488407
|
|
@ -291,19 +291,19 @@ static char shyNavBarManagerKey;
|
|||
|
||||
- (void)tly_swizzledViewWillAppear:(BOOL)animated
|
||||
{
|
||||
[self.shyNavBarManager prepareForDisplay];
|
||||
[[self _internalShyNavBarManager] prepareForDisplay];
|
||||
[self tly_swizzledViewWillAppear:animated];
|
||||
}
|
||||
|
||||
- (void)tly_swizzledViewDidLayoutSubviews
|
||||
{
|
||||
[self.shyNavBarManager layoutViews];
|
||||
[[self _internalShyNavBarManager] layoutViews];
|
||||
[self tly_swizzledViewDidLayoutSubviews];
|
||||
}
|
||||
|
||||
- (void)tly_swizzledViewWillDisappear:(BOOL)animated
|
||||
{
|
||||
[self.shyNavBarManager cleanup];
|
||||
[[self _internalShyNavBarManager] cleanup];
|
||||
[self tly_swizzledViewWillDisappear:animated];
|
||||
}
|
||||
|
||||
|
|
@ -327,5 +327,13 @@ static char shyNavBarManagerKey;
|
|||
return shyNavBarManager;
|
||||
}
|
||||
|
||||
#pragma mark - Private methods
|
||||
|
||||
/* Internally, we need to access the variable without creating it */
|
||||
- (TLYShyNavBarManager *)_internalShyNavBarManager
|
||||
{
|
||||
return objc_getAssociatedObject(self, ­NavBarManagerKey);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue