2

I'm trying to use a UITableView with some cells having the 'delete' option which is available when setEditing is set to YES, and the other cells in the table not having this option. This works great. However, there is another section of my table that I want to be able to have UITableViewCellAccessoryCheckmark--but being in the edit mode seems to hide this. Is there a way to display this accessory when in the edit mode?

1 Answer 1

5

Since hidesAccessoryWhenEditing was deprecated in 3.0, use the UITableViewCell's editingAccessoryType property like so:

[cell setEditingAccessoryType:UITableViewCellAccessoryCheckmark]; or cell.editingAccessoryType = UITableViewCellAccessoryCheckmark;

or the appropriate accessory type to suit your needs.

Source: Deprecated UITableViewCell Methods

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.