을 강조 나는이있는 UITableViewCell - 그것은/선택 강조 ... 그리고 선택된 상태로 유지/
cell.selected = YES;
이 가능 전화 후 나는 불 UITableViewCell
숙박 (파란색)하고 싶은되도록 설정? 내가 특별히 있는 tableView didSelectRowAtIndexPath에는 어떻게 든 반환하지 않은 가정
을 강조 나는이있는 UITableViewCell - 그것은/선택 강조 ... 그리고 선택된 상태로 유지/
cell.selected = YES;
이 가능 전화 후 나는 불 UITableViewCell
숙박 (파란색)하고 싶은되도록 설정? 내가 특별히 있는 tableView didSelectRowAtIndexPath에는 어떻게 든 반환하지 않은 가정
(안 cell.selected
같이) 그것에 대해 다른 길을 갈해야합니까 : 당신이 할 필요가 없습니다 indexPath 아무것도 - 그것의 기본 동작입니다.
당신과 같이 선택하면
[self tableView:self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForForRow:row inSection:section]];
당신은 파란색 머물 수있는 선택의 스타일을 설정할 수 있습니다 사용할 수 있습니다
- (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];
}
을
사실 이것은 기본 동작입니다. 어떤 상황에서 어려움이 있습니까? –