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 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.

This is my relevant code:

.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   

. M file:

  @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: **   

Enter image details here

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)

  // self.viewController = [[UIViewController alloc] init]; // self.navigationController = [[UINavigationController alloc] initWithRootViewController: self.viewController]; // [self.navigationController.view addSubview: self.viewController.view];    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -