- Added method to query for the existence of an associated TLYShyNavBarManager instance without triggering its creation and association.

This commit is contained in:
Gian Franco Zabarino 2016-01-29 23:17:28 -03:00
parent b8b32c597f
commit 47f9b081bf
2 changed files with 12 additions and 0 deletions

View File

@ -110,4 +110,9 @@
/* Initially, this is nil, but created for you when you access it */
@property (nonatomic, strong) TLYShyNavBarManager *shyNavBarManager;
/* Use this to find out if a TLYShyNavBarManager instance was associated
* to this view controller, without triggering its creation and association.
*/
- (BOOL)isShyNavBarManagerPresent;
@end

View File

@ -485,6 +485,13 @@ static char shyNavBarManagerKey;
[self tly_swizzledViewWillDisappear:animated];
}
#pragma mark - Public methods
- (BOOL)isShyNavBarManagerPresent
{
return [self _internalShyNavBarManager] != nil;
}
#pragma mark - Properties
- (void)setShyNavBarManager:(TLYShyNavBarManager *)shyNavBarManager