In this chapter we programmatically created a TableView without a XOB/NIB and without a storyboard, correct?
So now I would like to change over in my cells to use the UITableViewCellStyleSubtitle version with its detail label, but am stumped.
The call to dequeueReusableCellWithIdentifier at the beginning of cellForRowAtIndexPath is NEVER nil, and it always creates a default single line cell. I see no opportunity when creating the tableviewcell to perform an initWithStyle:UITableViewCellStyleSubtitle which will set the cell type to what I want.
Without a storyboard or XIB how should I address this? Online I see posts that tell me to set the type in the storyboard or in the XIB - can this be done programmatically? I appreciate the advice in advance.
Or should I use the UITableViewCell subclassing customization in chapter 19? I guess that creates a custom class, and a XIB that contains only a TableViewCell? At a certain point why is this path better than having a storyboard or XIB for the TableView itself so I could take advantage of a prototype cell? Or is that just a new way of doing the chore at the start of chap19. I really would like to do this without subclassing etc if possible - it SHOULD be ez