2010-06-09 2 views
0

이 iPhone TableView의 셀에는 Detail-Disclosure-Button이 있습니다.도청 된 세부 정보 공개 버튼 인 뷰를 얻는 방법

내가 탭하면 ...이 코드가 나에게 버튼에 대한 액세스 권한을 부여해서는 안됩니까?

대신에 detailButton은 항상 null입니다.

- (void) tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath 
{ 
    UITableViewCell *aCell = [tableView cellForRowAtIndexPath:indexPath]; 
    UIButton *detailButton = (UIButton *)[aCell accessoryView]; 
} 

답변

0

'cellForRowAtIndexPath'의 셀 액세서리 버튼을 우연히 오버 라이딩하고 있습니까?

0

accessoryView은 사용자 정의를 위해 accessoryType을 무시하도록 제공됩니다. 표보기 셀은 내부적으로 사용자가 accessoryType에 할당 한 내용을 accessoryView에 영향을 미치지 않고 처리합니다.