I have a UITabBar
with a number of UITabBarItem
s. I've assigned a different view controller to each of these.
I want to load some data etc., when each button is clicked. Therefore I will like to know where to put that code? I tried implementing viewWillAppear
and viewDidLoad
in the view controller but those didn't get called.