IOS学习笔记-UINavgationController_移动开发_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > 移动开发 > IOS学习笔记-UINavgationController

IOS学习笔记-UINavgationController

 2015/4/16 19:31:23  泰坦V擎天  程序员俱乐部  我要评论(0)
  • 摘要:CreatingNavigationControllers方法:initWithRootViewController:Initializesandreturnsanewlycreatednavigationcontroller.-(instancetype)initWithRootViewController:(UIViewController*)rootViewController参数:UIViewController方法:initWithNavigationBarClass
  • 标签:笔记 学习 iOS 学习笔记 controller

class="section-name">Creating Navigation Controllers

UINavgationController继承关系图

 

方法:initWithRootViewController:

Initializes and returns a newly created navigation controller.

- (instancetype)initWithRootViewController:(UIViewController *)rootViewController

参数:UIViewController

 

方法:initWithNavigationBarClass:toolbarClass
Initializes and returns a newly created navigation controller that uses your custom bar subclasses.

- (instancetype)initWithNavigationBarClass:(Class)navigationBarClass
                              toolbarClass:(Class)toolbarClass

 

参数:navigationBarClass、toolbarClass

附言:

Use this initialization method if you want to use custom navigation bar or toolbar subclasses with the navigation controller. If you use this method, you are responsible for adding a root view controller before presenting the navigation controller onscreen.

上一篇: Watch?Kit Learning Resources 下一篇: 没有下一篇了!
发表评论
用户名: 匿名