Note that there are some explanatory texts on larger screens.

plurals
  1. POI can make UINavigationController load only at 2nd level, not at Root View Controller
    primarykey
    data
    text
    <p>I tried looking for a similar problem but I could not find a similar question. </p> <p>I am loading a UINavigationController in a UIView which is not (as in most examples) the MainWindow.</p> <p>I created one new .xib called DocumentsViewController which is subclass of UIView (it has the related .m and .h files). And I created a DocumentsRootViewController.xib, which is a subclass of UITableViewController, which is supposed to be the UINavigationController's RootViewController.</p> <p>I moved to DocumentsViewController and added a UINavigationController object in Interface Builder. Then I went to code, and added it as in IBOutlet, and connected it to the object. </p> <p>In the ViewDidLoad, I execute the following lines:</p> <pre><code>DocumentsRootViewController *rootViewController = [[[DocumentsRootViewController alloc] init] autorelease]; rootViewController.title = @"Documents"; [navigationControllerDocuments initWithRootViewController:rootViewController]; [self.view addSubview:navigationControllerDocuments.view]; </code></pre> <p>It shows the table as intended, but it shows a "Back" button to the "Root View Controller" (as in picture below). </p> <p>Why? Shouldn't it already know that the rootviewcontroller has been set? </p> <p>Thank you in advance to the ones that clarify this doubt </p> <p>Giovanni</p> <p><img src="https://i.stack.imgur.com/6mIO4.png" alt="The UINavigationController behavior"> <img src="https://i.stack.imgur.com/YVgoc.png" alt="Xib Structure"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload