change title of viewcontroller which is on UItabbarcontroller
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开发者_如何学Python text always showing "registration" only. thanks in advance
Try
In ViewDidLoad method of First view
self.title = @"registration";
In ViewDidLoad method of Second view
self.title = @"profile";
All the Best
You can actually just do (in your ViewController subclasses ViewDidLoad):
self.title = @"Title";
精彩评论