IOS学习笔记-UINavgationController

时间:2015-04-16 19:32:17   收藏:0   阅读:140

Creating Navigation Controllers

技术分享

 

方法: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.

原文:http://www.cnblogs.com/nr8671800/p/4432152.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!