[FIX]: fixed demo project, and library issue.. I should've tested more!!

Thanks to NightIsland for reporting.
This commit is contained in:
Mazyad Alabduljaleel 2014-06-27 19:15:37 +04:00
parent 31cdc78869
commit daa2488407
1 changed files with 11 additions and 3 deletions

View File

@ -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, &shyNavBarManagerKey);
}
@end