views:

169

answers:

2

i have a UItabbacController with 6 tabs. My "More" tab contains 2 UIviewcontrollers. How to change title of one UIViewcontrolleller which will be showing in Morenavigationcontroller.

Initially that view controller title is "registration". But after logged in i have to change to "profile". Please help me ..thanks

  • Edit

I have only one nib file and one ProfileViewController class and one ProfileView Class.

After logged in am just changing the title of one viewcontroller. that tableview cell text always showing "registration" only. thanks in advance

+1  A: 

Try

In ViewDidLoad method of First view

 self.title = @"registration";

In ViewDidLoad method of Second view

self.title = @"profile";

All the Best

Warrior
Both view are loading from same Interface builder file. so what to do ?
Sijo
its title only will be changing..
Sijo
you will be having two view class.Change in both class files of viewdidload method.
Warrior
i dont have two view class. I have only one nib file and one ProfileViewController class and one ProfileView Class.After logged in am just changing the title of one viewcontroller. that tableview cell text always showing "registration" only. thanks for all ur replies..
Sijo
i think i posted question in a wrong way. i want to change the cell text in "More Tableview".
Sijo
+1  A: 

You can actually just do (in your ViewController subclasses ViewDidLoad):

self.title = @"Title";
christo16