1
當我們做這樣navigationController視圖的
self.navigationController.toolBarHidden = NO;
問題:在哪裏呢navigationController從何而來。我看看UIViewController.h,但我根本找不到那個屬性
請給我建議。由於
當我們做這樣navigationController視圖的
self.navigationController.toolBarHidden = NO;
問題:在哪裏呢navigationController從何而來。我看看UIViewController.h,但我根本找不到那個屬性
請給我建議。由於
看(UINavigationControler.h在)上UIViewController
的UINavigationControllerItem
類別:
@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