开发者

Can I make a cell be in editing mode all the time?

开发者 https://www.devze.com 2022-12-08 02:38 出处:网络
I have a UITableView with one section. The last row it to add new objects, and it reads \"Add Object\".

I have a UITableView with one section. The last row it to add new objects, and it reads "Add Object".

How can I make this cell stay in editing mode so that it will always show the plus icon? I've tried using cell.editing = YES and [cell setEditing:YES animated:NO] but neither makes the cell appear in editing mode.

Th开发者_如何转开发anks!


Implement delegate's

- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath

method. You might also need to set tableview's editing property to YES, but I am not sure.

0

精彩评论

暂无评论...
验证码 换一张
取 消