UINavigationController的title问题 在每个控制器的init函数中添加self.navigationItem.title=@"controller title";试试这样行吗 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 -(id) init{ self = [super initwithNibName:nil bundel:nil]; if(self){ self.title = @"111"; UITabBarItem *tbi = [self tabBarItem]; [tbi setTitle:@"222"]; } return self;}试试这个。 他就会把tabbar的名称修改了导航栏还是没有 你的UINavigationController + UITabBarController 是怎么用的 就是把tabbar添加到了nav的根试图上,然后把nav添加到了window中。。self.tabBar = [[UITabBarController alloc]init]; self.tabBar.viewControllers = arry; _nav = [[UINavigationController alloc]initWithRootViewController:self.tabBar]; [self.window addSubview:self.nav.view];然后我想在第一个界面上面的nav上设置title 你试下self.tabBar.title = @"***",另外,我觉得你这个结构设计的有点问题,最好是把导航视图控制器加入到tabbarcontroller里面,tabbarcontroller作为最顶层 self.title = @""; 就可以修改 被push的viewcontroller的self.title就是导航栏看到的标题,不是设置导航对象的 我写了个例子传了上去,你看看是不是你要的http://download.csdn.net/detail/beijinuo/4734208 -(void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; self.tabBarController.title = @"办理业务";} iphone 显示网页问题 NSString 转换 急。。。。 phonegap做的移动应用后台怎么写。。 UIButton 的layer 在加入动画之后,点击事件就失效了 sharesdk分享完成后跳转到其他应用 求助,新人刚学ios,对着网上的socket代码打完了,为什么程序不会调用socket里面指定的回调函数呢? IOS中View之间如何异步通信? afnetworking 怎么上传图片来达到类似qq头像换图标的效果 自定义tabbar按钮切换问题 求个10.3.2的真机测试包 IOS项目如何导入包 心率测试是如何实现的?
-(id) init{
self = [super initwithNibName:nil bundel:nil];
if(self){
self.title = @"111";
UITabBarItem *tbi = [self tabBarItem];
[tbi setTitle:@"222"];
}
return self;
}
试试这个。
他就会把tabbar的名称修改了导航栏还是没有
就是把tabbar添加到了nav的根试图上,然后把nav添加到了window中。。
self.tabBar = [[UITabBarController alloc]init];
self.tabBar.viewControllers = arry;
_nav = [[UINavigationController alloc]initWithRootViewController:self.tabBar];
[self.window addSubview:self.nav.view];然后我想在第一个界面上面的nav上设置title
我写了个例子传了上去,你看看是不是你要的
http://download.csdn.net/detail/beijinuo/4734208
{
[super viewWillAppear:animated];
self.tabBarController.title = @"办理业务";
}