내 컨트롤러는 'editButtonItem'에 할당 된 왼쪽 버튼을 사용하여 UITableViewController에서 상속받습니다. 사용자가 원하는 모든 삭제 항목을 발행 한 후 "완료"버튼을 눌렀을 때 어떻게 알 수 있습니까?tableView의 commitEditingStyle 및 '완료'버튼을 누를 때 알기
self.navigationItem.leftBarButtonItem = self.editButtonItem;
나는이와
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
을 구현있어 삭제는 테이블의 각 항목에 대한 발생할 때 나는 볼 수 있지만 나는 또한 "완료"버튼을 누르 때 알고 싶습니다. 편집이 종료 할 때
- (void)setEditing:(BOOL)editing animated:(BOOL)animated
이 나에게 말할 것이다 :
덮어 쓰기 코드에서 부모님의 같은 방법을 먼저 사용해야합니까? –