¡@

Home 

2014/10/15 ¤U¤È 10:12:16

iphone Programming Glossary: obj_firstviewcontroller

Programmatically Setting UITabBar Titles

http://stackoverflow.com/questions/6056354/programmatically-setting-uitabbar-titles

Setting UITabBar Titles i had programetically add the tabbar as shown below FirstViewController obj_FirstViewController FirstViewController alloc initWithNibName @ FirstViewController bundle nil SecondViewController obj_SecondViewController.. initWithNibName @ ThirdViewController bundle nil navigation1 UINavigationController alloc initWithRootViewController obj_FirstViewController navigation2 UINavigationController alloc initWithRootViewController obj_SecondViewController navigation3 UINavigationController.. problem is i want to set the name of the tab as 1 Home 2 Favorites 3 About us I had tried by writing the below code 1 obj_FirstViewController.tabBarItem.title @ Home 2 self.title @ My View Controller But this does not work. Can anyone please help me how to do this..