所有, 我在用的的UITableView,并试图实施编辑/删除功能。的UITableView编辑/ delate-单元格的内容超出屏幕
当我打电话给这条线。
[tblStoreAvail setEditing:TRUE animated:TRUE];
单元格的内容不在屏幕上。
这些功能从未被调用过。
- (void)tableView:(UITableView *)tableView willBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath
- (void)tableView:(UITableView *)tableView didEndEditingRowAtIndexPath:(NSIndexPath *)indexPath
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
而不是将右标签作为子视图。将标签设置为accessoryView和EditingAccessoryView .. cell.editingAccessoryView = label; cell.accessoryView = label; – waheeda