1

私たちがこのようにするとき

self.navigationController.toolBarHidden = NO;

質問:navigationControllerはどこから来たのですか。UIViewController.hを確認しましたが、そのプロパティがまったく見つかりません。

これについて私にアドバイスしてください。ありがとう

4

1 に答える 1

1

UINavigationControler.h内の)のUINavigationControllerItemカテゴリを見てください。UIViewController

@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
于 2012-06-01T13:54:41.157 に答える