Search code examples
iphoneuitableviewdidselectrowatindexpathaccessorytype

Change the accessorytype of all the row of UITableView


I want to Change the accessory type of all the cells of UITableView on click the bar button item.Is there any idea or code for this.


Solution

  • Just take an flag (a bool or something) and call reloadData on your table view. And in cellForRowAtIndexPath test for your flag and put any accessory you want.