I don’t really understand how I made this work after reading through the chapter. I guess what is confusing me is that there is no main() function so I don’t know how the program is progressing.
BNRAppDelegate instantiates a BNRItemsViewController
This BNRItemsViewController is where the random items are generated by “init” but by using debug statements, I find that “initWithStyle” is not used. However, tableView: numberOfRowsInSection IS USED. Also tableView:cellForRowAtIndexPath is ALSO USED.
I was trying to do the Bronze Challenge and wanted to append a table beneath another table. I’m not even sure if this is possible but I tried to copy all the tableView:numberofRowinSection and tableView:cellForRowAtIndexPath stuff, and rename to “tableView2:XXX” But nothing happened.
- How does the computer know to skip initWithStyle but to run tableViews?