如何更改页面标题而不更改选项卡栏项目的标题?
我希望能够更改页面的标题而不影响选项卡栏的标题。我当前的实现如下:
//Setting page and UITabbar title in app delegate
ForYouViewController *fuvc = [[ForYouViewController alloc]init];
fuvc.title = @"Questions";
UITabBarItem *tempTabBarItem1 = [[UITabBarItem alloc]initWithTitle:@"Questions" image:nil tag:QUESTIONTAB_INDEX];
单击问题选项卡之前
//After changing the title's page in view did load of "ForYouViewController"
- (void)viewDidLoad
{
[super viewDidLoad];
self.title = @"Latest";
}
单击问题选项卡之后(选项卡栏标题已更改) )
如何设置页面标题,使其不会更改选项卡栏的描述?
I want to be able to change the page's title without affecting the tab bar's title. My current implementation is as follows:
//Setting page and UITabbar title in app delegate
ForYouViewController *fuvc = [[ForYouViewController alloc]init];
fuvc.title = @"Questions";
UITabBarItem *tempTabBarItem1 = [[UITabBarItem alloc]initWithTitle:@"Questions" image:nil tag:QUESTIONTAB_INDEX];
Before clicking on questions tab
//After changing the title's page in view did load of "ForYouViewController"
- (void)viewDidLoad
{
[super viewDidLoad];
self.title = @"Latest";
}
After clicking on questions tab (tab bar title changed)
How can I set the the page title such that it does not alter the tab bar's description?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以试试这个
You can try this