This will tell you when the value of this field changes:
UITabBar *myTabBar = [[UITabBar alloc] init]; [self addObserver:myInterestedObjectWhoWantsToKnowWhenTabBarHiddenChanges forKeyPath:@"myTabBar.hidesBottomBarWhenPushed" options:NSKeyValueObservingOptionNew context:nil];
Then in myInterestedObjectWhoWantsToKnowWhenTabBarHiddenChanges.m we implement
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { if ([keyPath isEqualToString:@"myTabBar.hidesBottomBarWhenPushed"]) {
source share