가능한 중복 : iPhone에서 selectionStyle UITableView 셀 선택 편집 할 때 스타일?
당신이 UITableView
의 행을 누르
How can I disable the UITableView selection highlighting?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
cell.userInteractionEnabled = NO;
return cell;
}
DUP 기사에서를, 나는 allowsSelection을 설정 하단 투표 대답을 선호 = 테이블 뷰의 속성에서 아니오. – danh
'allowsSelection'을'NO'로 설정하는 것은 좋지만, 전체 테이블 뷰가 선택 불가능한 행을 가지기를 원할 때만 가능합니다. 개별 셀의 선택 가능성을보다 세밀하게 제어하려면 대신'UITableViewCell'의'selectionStyle' 속성을 사용하십시오. – Pripyat