Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Check to make sure that you've correctly set the identifier for the table cell.</p> <p>To do this, open up your storyboard editor and go to your table view. Click on the prototype cell and open up the Utilities pane. Check that "Identifier" is "ClassCell".</p> <p>Next, make sure your ViewController is a UITableViewController and implements the UITableViewDelegate protocol. It's not clear if you've done this.</p> <p>Your ScheduleTableViewController.h should be something like:</p> <pre><code>#import &lt;UIKit/UIKit.h&gt; @interface ScheduleTableViewController : UITableViewController &lt;UITableViewDelegate&gt; // code @end </code></pre> <p>Also, I noticed this here:</p> <pre><code>NSMutableArray *classes = [[NSMutableArray alloc]init]; Course *class = [[Course alloc]init]; [class setName:@"AP Psychology"]; [class setRoom:@"E203"]; [class setTeacher:@"Juiliette Forbes"]; [classes addObject:class]; [class setName:@"AP Literature"]; [class setTeacher:@"Kristen Holtz"]; [class setRoom:@"E207"]; [classes addObject:class]; [class setName:@"AP Physics"]; [class setTeacher:@"Peter Dalby"]; [class setRoom:@"D205"]; [classes addObject:class]; </code></pre> <p>Since *class is a pointer to a course object, you've only actually created one, then you keep editing its properties and re-adding it to the array. Create multiple class objects like so:</p> <pre><code>Course *class1 = [[Course alloc] init]; // set properties Course *class2 = [[Course alloc] init]; // set properties Course *class3 = [[Course alloc] init]; // set properties [classes addObjects:class1, class2, class3, nil]; </code></pre>
    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.
    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