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 short chapter introduced the anatomy and core components of the UITableView.

There are two basic styles of table view:

  • Plain
  • Grouped

Table views can also be split into sections, and provided with an index.

Although they can look different, the different types of table view have similar component parts and dimensions. They also inherit methods and properties from the UIScrollView parent class.

Like many of UIKit’s components, it’s possible to create UITableViews both visually—using Interface Builder—and programmatically. Anything that can be done with Interface Builder can also be done in code. Implementing the tableView’s controller as a subclass of UITableViewController allows us to cut down on creating methods manually and use the templates that are provided.


  

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