2009-07-18 2 views

답변

0

(안 cell.selected 같이) 그것에 대해 다른 길을 갈해야합니까 : 당신이 할 필요가 없습니다 indexPath 아무것도 - 그것의 기본 동작입니다.

2

당신과 같이 선택하면

[self tableView:self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForForRow:row inSection:section]]; 
0

당신은 파란색 머물 수있는 선택의 스타일을 설정할 수 있습니다 사용할 수 있습니다

- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { 
    cell.selectionStyle = UITableViewCellSelectionStyleBlue; 
} 

을 그리고 있는지 확인하십시오 당신의 선택 해제하지 셀 :

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 
    // This is what you DO NOT want to do 
    [tableView deselectRowAtIndexPath:indexPath animated:NO]; 
} 
관련 문제