Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
CHAPTER 9: Creating Custom Cells with Subclasses 237 oddCell.cellContentLabel.text = cellPhraseContent; oddCell.iconView.image = [UIImage imageNamed:@"planet"]; return oddCell; } The end results in Figure 917 are indistinguishable from the cells you created using nib files but this time, the custom cells are constructed entirely in code with not a nib file to be seen. Figure 917. The end results Debugging Layers While the UIKit syntax makes working with UIViews reasonably easy, getting layouts right can be fiddly particularly if you're trying to tweak layouts a few pixels at a time. Changing the layout, rerunning the app in the Simulator, altering the layout again, re- running the app that can quickly become a tedious process.