Initializing TabBarItem title and image
Hi there,
This is a great thread. Thanks to all for participating. What is the proper location for setting the title and image for a Table View Controller that is part of a Nav Controller that is part of a Tab Bar Controller?
Tab Bar Controller
--------Nav Controller
--------------Table View Controller
--------Nav Controller
--------------Table View Controller
--------Custom View Controller
I set the tabBarItem.title and tabBarItem.image in the init method of Custom View Controller and that works just fine. But when I override init for TableViewController and set title and image for tabBarItem for the Nav Controller-TableViewController tabs the corresponding label and image do not appear in the tab. I am not sure what is the proper place to set the tab bar item for this scenario. I am doing this programmatically. Thank you.
|