Is there a way to disable accessory indicators from rows individually? I have a table that uses
- (UITableViewCellAccessoryType)tableView:(UITableView *)tableView accessoryTypeForRowWithIndexPath:(NSIndexPath *)indexPath
{
return UITableViewCellAccessoryDetailDisclosureButton;
}
I need to disable it (remove icon and not trigger a detail disclosure event) for a single row.
I thought this would do it, but has no result. The indicator still appears and it still receives and event on touch.
cell.accessoryType = UITableViewCellAccessoryNone;
That function call ‘accessoryTypeForRow..’ is depeecated now (from sdk 3.0 +).
Preferred way of setting the accessory type is in ‘cellForRowAt..’ method