2012-06-01 3 views
1

, когда мы делаем, как этотnavigationController из зрения

self.navigationController.toolBarHidden = NO; 

вопрос: где navigationController берутся. Я смотрю на UIViewController.h, но я не могу найти это свойство вообще

Прошу совета по этому вопросу. Благодаря

ответ

1

Посмотрите на UINavigationControllerItem категории на UIViewControllerUINavigationControler.h):

@interface UIViewController (UINavigationControllerItem) 

@property(nonatomic,readonly,retain) UINavigationItem *navigationItem; // Created on-demand so that a view controller may customize its navigation appearance. 
@property(nonatomic) BOOL hidesBottomBarWhenPushed; // If YES, then when this view controller is pushed into a controller hierarchy with a bottom bar (like a tab bar), the bottom bar will slide out. Default is NO. 
@property(nonatomic,readonly,retain) UINavigationController *navigationController; // If this view controller has been pushed onto a navigation controller, return it. 

@end 
Смежные вопросы