开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜