Where to put code that needs to be exectued every time a Tableview (tab bar item) is selected?

Put it in viewWillAppear if you want the code to run before the view is displayed.

Nice1. Appreciate it. – Helium3 Jul 13 '10 at 22:32.

You can conform to the UITabBarDelegate protocol and implement the following method: - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item I suggest that you set the tag property in the creation of your UITabBarItems in order to differentiate between which tab the item is.

I will use the viewWillAppear method thanks – Helium3 Jul 13 '10 at 22:32.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions