ios - How to know if a user has changed tab? -


i have tab bar controller has navigation controllers children. possible find out when user navigated away navigation controller (as switched tab) in form of callback?

whichever class tab bar controller's delegate sent following selectors:

- (bool)tabbarcontroller:(uitabbarcontroller *)tabbarcontroller shouldselectviewcontroller:(uiviewcontroller *)viewcontroller - (void)tabbarcontroller:(uitabbarcontroller *)tabbarcontroller didselectviewcontroller:(uiviewcontroller *)viewcontroller 

Comments