0
此iPhone TableView中的單元格肯定具有詳細披露按鈕。如何獲得視圖是挖掘詳細信息披露按鈕
當我點擊它時......不應該使用此代碼訪問按鈕嗎?
相反,detailButton總是空。
- (void) tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *aCell = [tableView cellForRowAtIndexPath:indexPath];
UIButton *detailButton = (UIButton *)[aCell accessoryView];
}