Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableViewCell with 2 accessory types

I would like to make a UITableViewCell with one label and two accessory types:

  • Unselected cells should display a UITableViewCellAccessoryDetailDisclosureButton accessory.
  • The selected cell should display both the UITableViewCellAccessoryDisclosureIndicator and the UITableViewCellAccessoryDetailDisclosureButton accessories.

The only way I know how to do this is by using an image for the selected cell's accessory view. Is there an alternative way to do this?

like image 815
Adriana Avatar asked Feb 13 '26 05:02

Adriana


1 Answers

Make a custom UITableViewCell (numerous tutorials and examples online and also in the documentation).

like image 187
PengOne Avatar answered Feb 15 '26 02:02

PengOne