© Wallace Wang 2019
Wallace WangBeginning iPhone Development with Swift 5https://doi.org/10.1007/978-1-4842-4865-2_15

15. Customizing Table View Cells

Wallace Wang1 
(1)
San Diego, CA, USA
 

Chapter 14 explained how to create different types of table views including plain and grouped tables along with section indexes. So far, we’ve only used a simple cell that displays a single line of text. In this chapter you’ll learn how to customize a cell to display additional text and images. In addition, you’ll also learn how to modify the appearance of cells.

Cells in a table view can display the following as shown in Figure 15-1:
  • textLabel – Defines the main text displayed in a cell

  • detailTextLabel – Defines the secondary text that appears in a smaller font size ...

Get Beginning iPhone Development with Swift 5: Exploring the iOS SDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.