Adding the little arrow to the right side of a cell in an iPhone TableView Cell

Viewed 104368

This should be simple enough.

I have an iPhone app with a TableView. How do I add the little classic arrow to the righthand side of each cell?

9 Answers

IN SWIFT 5

Use

cell.accessoryType = .detailButton

for a small Info-button on the right. enter image description here

cell.accessoryType = .disclosureIndicator

for a small Info-arrow on the right. enter image description here

cell.accessoryType = .detailDisclosureButton

for a small Info-button and Info-arrow on the right. enter image description here

infront of your return cell

Related