开发者

change title of viewcontroller which is on UItabbarcontroller

开发者 https://www.devze.com 2022-12-24 23:10 出处:网络
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.

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";
0

精彩评论

暂无评论...
验证码 换一张
取 消