Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I followed your steps, recreated the project and ran into the same problem. Basically you are almost there. There are 2 things missing (once fixed it works):</p> <ul> <li><p>You need to connect the <code>tableView</code> of the <code>TableTestTableViewController</code> to the <code>UITableView</code> you have on the screen. As I said before because it is not <code>IBOutlet</code> you can override the <code>tableView</code> property and make it and <code>IBOutlet</code>:</p> <pre><code>@interface TableTestTableViewController : UITableViewController { UITableView *tableView; } @property (nonatomic, retain) IBOutlet UITableView *tableView; </code></pre></li> <li><p>Next thing is to add a reference to the <code>TableTestTableViewController</code> and retain it in the <code>TableTestViewController</code>. Otherwise your <code>TableTestTableViewController</code> may be released (after loading the nib with nothing hanging on to it.) and that is why you are seeing the erratic results, crashes or nothing showing. To do that add:</p> <pre><code>@interface TableTestViewController : UIViewController { TableTestTableViewController *tableViewController; } @property (nonatomic, retain) IBOutlet TableTestTableViewController *tableViewController; </code></pre> <p>and connect that in the Interface Builder to the <code>TableTestTableViewController</code> instance.</p></li> </ul> <p>With the above this worked fine on my machine.</p> <p>Also I think it would be good to state the motivation behind all this (instead of just using the <code>UITableViewController</code> with its own <code>UITableView</code>). In my case it was to use other views that just the <code>UITableView</code> on the same screenful of content. So I can add other <code>UILabels</code> or <code>UIImages</code> under <code>UIView</code> and show the <code>UITableView</code> under them or above them. </p>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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