Is there a way to animate the removal of a UITableView cellular accessory?
I am currently displaying the UITableViewCellAccessoryDisclosureIndicator identifier, but I would like to animate the replacement indicator using UISwitch in all visible cells of the table.
I tried something like this:
[UIView animateWithDuration:0.3
animations:^{
for (SwitchTableViewCell *cell in self.tableView.visibleCells)
{
cell.accessoryType = UITableViewCellAccessoryNone;
}
}];
... but, unfortunately, this does not affect. The disclosure indicator suddenly disappears, and the width of the contentView goes one step, rather than a smooth transition.
Mikeq source
share