테이블보기가 있고 모든 셀을 재정렬 할 수 있지만 삭제할 수없는 특정 셀이 있습니다. UiTableView를 삭제 모드로 전환하면 왼쪽에 빨간색 '-'버튼이 나타나지 않고 스 와이프 제스처가이 셀의 삭제 버튼을 불러 오지 못하게하고 다른 버튼에서 삭제 버튼을 원하는 경우 . 어떤 아이디어? '-'물론UITableViewCell : 선택적 삭제 허용
// Override to support conditional editing of the table view.
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
// Return NO if you do not want the specified item to be editable.
return YES;
}
'- (BOOL) tableView : (UITableView *) tableView shouldIndentWhileEditingRowAtIndexPath : (NSIndexPath *) indexPath'를 사용하면 들여 쓰기를 방지 할 수 있습니다. :) – Johanneke