UITableView, intercepting Edit mode

后端 未结 4 935
-上瘾入骨i
-上瘾入骨i 2021-02-13 13:59

I\'m curious if it\'s possible to intercept the default methods of \'Edit\' mode on a UITableView. Typically you get a free \'delete\' button if you side swipe a UITableViewCell

4条回答
  •  死守一世寂寞
    2021-02-13 14:45

    @JFMartin and Marco - to replace the standard 'Delete' button use the following UITableview delegate method

    - (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath
    

提交回复
热议问题