Warm tip: This article is reproduced from serverfault.com, please click

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

发布于 2011-06-12 15:34:20

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?

Questioner
Eric Brotto
Viewed
0
EmptyStack 2017-04-17 22:20:54

Just set the respective accessoryType property of UITableViewCell.

cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;

In Swift 3,

cell.accessoryType = .disclosureIndicator