【发布时间】:2011-09-07 01:56:47
【问题描述】:
我的标题和 UINavigationController 有问题。我在 UIViewControllerCurrent 使用以下代码,当我从 NextViewController 回来时,NavBar 的标题仍然是“Previous”..有人可以帮我解决这个问题吗?谢谢。
[self setTitle:@"Previous"];
NextViewController *controller = [[NextViewController alloc] init];
[[self navigationController] pushViewController:controller animated:YES];
[controller release], controller = nil;
- (void)viewWillAppear:(BOOL)animated; {
[self setTitle:@"Real Title"];
[super viewWillAppear:animated]; }
【问题讨论】:
标签: iphone ios uinavigationcontroller uinavigationbar title