Ok so I completed the gold challenge. Everything works great. I just have a few questions…
First, I used tableView:heightForRowAtIndexPath: which worked great. But the docs say this method could lead to performance issues with 1000’s of table rows, which makes sense because it’s called for every row. I tried to set the rowHeight property explicity in tableView:cellForRowAtIndexPath:, which I thought was ok to do judging by what the docs say. The docs state:
Trying to set the rowHeight explicity didn’t do anything for me (this was before I implemented tableView:heightForRowAtIndexPath:). Did I try to set it in the wrong method?? I figured it had to be in tableView:cellForRowAtIndexPath: because I needed to set the height to 60.0 if it wasn’t the “No more items” row.
Second question, I looked at a few other’s examples after I finished mine, to gauge how I did. There are some people that explicitly put , is this necessary? My code doesn’t throw any errors or warnings. If the chapter is followed word for word the ItemsViewController’s superclass is UITableViewController, which if I remember correctly, acts as the UITableView Datasource and Delegate. If we inherit from UITableViewController, we shouldn’t need to put correct?