재생 목록에 노래를 추가 할 때 각 셀에 iPod 앱처럼 '+
'버튼이있는 TableView를 구현하려고합니다.AccessoryType TableView에 "Plus"버튼 추가
cell.accesoryType
는 네 개의 값
UITableViewCellAccessoryCheckmark
UITableViewCellAccessoryDetailDisclosureButton
UITableViewCellAccessoryDisclosureIndicator
및
None
방법이 작업을 수행 할 수있다? 맞춤 버튼을 만들고
cell.accessoryView
을 설정해야합니까, 아니면 다른 방법이 있나요? 만약 당신이
custom cell
를 작성하는 경우 당신은 또한 "이미지를보고"얻을 수 있도록
발견 된 솔루션 UIButton * button = [UIButton buttonWithType : UIButtonTypeContactAdd]; [button addTarget : 자기 액션 : @selector (buttonTapped : event :) forControlEvents : UIControlEventTouchUpInside]; cell.accessoryView = button; 및 절차 이벤트 처리 생성 - buttonTapped (무효) : (ID) 보낸 이벤트 (ID) 이벤트를 { } – teo