When I switch tabs in my tab bar application, one of my views needs to update because the user may have changed a preference that affects it. It is a UIViewController‘s view, but when the views switch, the viewDidLoad/Appear methods aren’t called. Can this be solved using an NSNotification or any other way? Please give example code, especially for NSNotifications, as I am new to them.
When I switch tabs in my tab bar application, one of my views needs
Share
You might want to peek at
UITabBarControllerDelegateandtabBarController:didSelectViewController:. There you can determine how to handle the view change and whether you need to update the view based on the possible preference change.