I hit major stumbling with trying to move forward with the book’s project at the beginning of this chapter. I would appreciate any help possible.
I followed the directions explicitly (at least so I thought). I was trying to fix the layout and I hit something incorrectly and did a command-Z to undo my actions. Well, that appeared to completely flummox the view and my controls were no longer visible. I had to restart the creation of the NIB by blowing away the current NIB first. This is where my living hell began…
After creating it again, I found that I could not connect any of the subviews view the control-drag to the BNRItemCell.h file for the outlets. When I did that, it acted as if it didn’t recognize what I was trying to insert in the .h file. After several hours of aborted attempts at doing various things, I found that by subclassing the View (NOT the UIItemViewCell) allowed me to ctrl-drag and set up the outlets. And, it ran. I still have to work on the layout part.
The main question here is, is that a typo? If not, then why can I not subclass the UIItemViewCell as the book says to do? I’ve gone through all the obvious stuff (including redoing everything and rereading that section at least a dozen times) and no luck.
By the way, I did try to “force” the outlets, for one of my aborted attempts, to connect with the subviews when the UIItemViewCell was subclassed to BNRItemCell. When I ran the project, as soon as it tried to display a row, the app would blow-up complaining that about something where at least one UITableViewCell could not be found in the NIB file (I’m paraphrasing here). I lost a few hours trying to clear cache and restarting.