Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Summary

This chapter has covered two of the three main ways of creating and configuring custom tableView cells:

  • Adding subviews to the cell's contentView, and configuring these in the cellForRowAtIndexPathdataSource method
  • Designing a cell from scratch by using Interface Builder, and configuring the custom controls in code when the cell is loaded from its NIB file

The third approach—which is the most flexible, but also the one that requires most work to set up—is to create a custom subclass for each type of cell that your tableView requires. That's what the next chapter covers.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial