I switch between two views by switching hidden attributes . How do I know when one view will be hidden and / or visible?
Tried setting breakpoints in viewDidLoad, viewDidUnload, viewWillAppear, viewWillDisappear, viewDidDisappear, startFirstResponder and resignFirstResponder. Nothing. None of them are called when I set hidden = YES / NO.
if (self.aController) self.aController.view.hidden = YES; if (self.bController) self.bController.view.hidden = NO; [self.bController viewWillAppear:YES];
I call viewWillAppear on my own as this view ... subview is the subheading of the view under UITabBarItem. Apple docs reported that the configuration is unnatural and some automatic notifications must be done manually . Is this the same problem when you do not get startFirstResponder and resignFirstResponder that should be associated with hidden status?
source share