Search code examples
iphonetabbarviewdidloadtabbarcontrollerviewwillappear

View will appear did not getting call


In my application i am using a tabbar. First time when the app is loading it calls the functions in the viewDidload. But when I click on the other tabs and click back the 1st tab again i need to call the functions in viewWillAppear. It didnt call when i click back on 1st Tab again. Any Idea?


Solution

  • In your UITabBarController delegate method (didSelectViewController) call [viewController viewWillAppear:YES]; and then you should be fine.