ios - navigation controller doesn't show up the view -
PS: Please do not advise me to go with an app representative as I would use between my app views. Thanx.
I try to use the This is my relevant code: . M file: When I run the app, I hope to see the blue scene, but I'm seeing the default blue navigation bar even without the title message "Root View Controller". If you join the UI from the UI, then try removing these lines (alloc, init Delete) UINavigationController to display the
UITableView such as
settings app. So I'm trying to start step by step so far, I try to show a scene in a view controller in the navigation stack. But I'm missing something else.
.h file:
@interface ViewController: UINavigationController {UINavigationController * Navigation Controller; UIViewController * viewController; } @protecti (nanatomic, strong) IBotlate UIUV controller * navigation controller; @protecti (nonatic, strong) IBOutlet UIViewController * viewController; @end
@implementation ViewController @ synthesis navigation controller; Modify the ViewController; - (zero) viewDidoadload [[Super Viewedload]; // Setup an additional after loading the view, usually from a nibb. Self.viewController = [[UIViewController alloc] init]; Self.navigationController = [[UINavigationController alloc] initWithRootViewController: self.viewController]; [Self.navigationController.view addSubview: self.viewController.view]; } ** xib file: **
// self.viewController = [[UIViewController alloc] init]; // self.navigationController = [[UINavigationController alloc] initWithRootViewController: self.viewController]; // [self.navigationController.view addSubview: self.viewController.view];
Comments
Post a Comment