Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not seeing declarations of <code>myTableView</code> in your <code>RootViewController</code>. But if your <code>RootViewController</code> implements <code>UITableViewController</code>, you can use <code>self.tableView</code> to access the tableview. You don't need to keep a reference to it by yourself.</p> <p>@RachelD, if your <code>RootView</code> is more complicated than just a <code>UITableViewController</code> consider using a separate class, such as <code>RootTableViewController</code>. Then in your <code>RootView</code> xib, create <code>IBOutlet</code> for <code>RootTableViewController</code> to reference it. Like this:</p> <pre><code>// RootTableViewController definition @interface RootTableViewController : UITableViewController { } // RootViewController definition @interface RootViewController : UIViewController { RootTableViewController *table_c; } @property (nonatomic, retain) IBOutlet RootTableViewController *table_c; </code></pre> <p>Note that you need to drag an "Object" into the "Objects" section (for RootViewController) in the interface builder, and type <code>RootTableViewController</code> in the Custom Class section for this object. Right click this object, make sure its IBOutlet, view, 2 delegates are correctly set.</p> <p>The reason why your <code>myTableView</code> is nil is because it's not properly initialized. I mean, if you don't use <code>UITableViewController</code> you are responsible for assigning it manually via interface builder or something.</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. 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