2010-11-23 6 views
2

UITableCell을 스 와이프하는 방법은 어떻게 프로그래밍하나요? 나는 이미 UITableCell에서 작업해온 서브 클래스를 가지고있다. 내가보기에 그랬듯이 그 안에 도청 만 처리합니까?iPhone Dev : UITableCell을 스 와이프

답변

1

당신은이 방법을 구현해야합니다 :

tableView:commitEditingStyle:forRowAtIndexPath: 
tableView:canEditRowAtIndexPath: 

이를 사용자 정의 : 당신이 이러한 메소드를 구현하는 것이 좋습니다 작동하려면

tableView:editingStyleForRowAtIndexPath: 

UITableViewCellEditingStyleDelete

을 반환 삭제 버튼의 텍스트는이 스레드를 참조하십시오 : UITableView Swipe to delete: how to customize button and action?

+0

니스. 고맙습니다. – Oscar

관련 문제