Home > database >  How do you edit the "Style" section of a table view prototype cell?
How do you edit the "Style" section of a table view prototype cell?

Time:11-18

For the Swift table view prototype Cell, it allows you to set the style = "Right Detail", which allows two text fields, one on the left and one on the right.

The left text field can be accessed through the following code.

cell.textLabel?.text

But does anyone know how to access the right text field (aka "Detail"?)

CodePudding user response:

cell.detailTextLabel?.text = "Your text"
  • Related