详细页面:http://www.verydemo.com/demo_c134_i47798.html
转:http://blog.youkuaiyun.com/totogo2010/article/details/7682433
是上篇,我们接着讲UINavigationController的重要作用,页面的管理和切换。
首先我们需要新一个View。新建SecondView,按住Command键然后按N,弹出新建页面,我们新建SecondView
在RootViewController.xib中和RootViewController.h文件建立连接
在RootViewController.m中实现代码,alloc一个SecondViewController,用pushViewController到navigationController中去,并为
SecondViewController这是title为 secondView. =; 默认情况下,titie为下个页面返回按钮的名字。
这就是SecondView了。
在nav bar这样的效果是如何实现的呢?
这就是segmentedController。