Reputation: 38142
Can we specifically set the re-ordering property of a cell (Add cell with + button) to NO? I cannot set editingStyle to NO as then I would not get even the + button in Add cell.
Upvotes: 0
Views: 177
Reputation: 24481
Use the delegate method: tableView:canMoveRowAtIndexPath:
.
You should use it by checking to see what the indexPath is and then return NO if the indexPath is the indexPath of a cell you do not want reorderingEnabled on.
Upvotes: 1
Reputation: 113747
You can set a cell's showsReorderControl
to NO
, implement tableView:moveRowAtIndexPath:toIndexPath:
and return NO
for tableView:canMoveRowAtIndexPath:
.
Upvotes: 0