[self.navigationController.viewControllers objectAtIndex:self.navigationController.viewControllers.count-2]
分类:
其他好文 时间:
2014-12-05 10:51:35
阅读次数:
128
iOS 5 以后 UINavigationController 可以 改变UINavigationBar导航条标题颜色和字体[self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionary...
分类:
其他好文 时间:
2014-11-28 17:56:45
阅读次数:
172
1.UINavigationControllerpopToViewController 对应popViewControllerAnimated:也可以使用:[self.navigationController popToRootViewControllerAnimated:YES][self.nav...
分类:
移动开发 时间:
2014-11-27 12:32:11
阅读次数:
383
[self.navigationController pushViewController: sampleViewController animated:true]; 界面无反应
reason: 'Pushing a navigation controller is not supported'...
分类:
移动开发 时间:
2014-11-26 14:21:11
阅读次数:
189
目前就能改leftBarButtonItem,rightBarButtonItem一样的颜色,打开plist文件加入View controller-based status bar appearance,将value改为no,在设置你想改的颜色self.navigationController.na...
分类:
其他好文 时间:
2014-11-25 16:10:17
阅读次数:
136
原创地址:http://blog.csdn.net/smking/article/details/388748591. 如果NavigationController上的当前界面的Title较长, 如“黔西南移动客户端“, 这样的话, 当执行push到下一个界面后, 返回按钮自动会变为 “Back“,...
分类:
其他好文 时间:
2014-11-22 20:10:22
阅读次数:
169
上面是一个navigationController,接下来一个searchBar,下面是tableViewsearchBar这个控件就用来搜索tableView上的数据[[UISearchDisplayControlleralloc]initWithSearchBar:searchBarconten...
分类:
其他好文 时间:
2014-11-22 01:57:26
阅读次数:
165
ZBMainViewController *main=[[ZBMainViewController alloc] init]; ZBBaseController *navigationcontroller=[[ZBBaseController alloc] initWithRootViewCo...
分类:
移动开发 时间:
2014-11-22 00:37:28
阅读次数:
225
使用NavigationViewController进行页面跳转时,应该使用pushViewController方法来跳转至下一页面,这样的话,下一页面同样在NavigationViewController容器中。1、跳转到下一页面:AloneSetPrizeViewController *setP...
分类:
其他好文 时间:
2014-11-20 11:41:02
阅读次数:
195
系统方式:
//1.设置导航栏背景图片
[self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault];
self.navigationController.navigationBar.shadowIm...
分类:
移动开发 时间:
2014-11-17 17:51:26
阅读次数:
191