码迷,mamicode.com
首页 > 移动开发 > 详细

IOS学习笔记-UINavgationController

时间:2015-04-16 19:34:24      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:

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.

IOS学习笔记-UINavgationController

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!