//NSArray의 데이터 개수만큼 순환하면서 각각의 TableViewCell 에 접근
for (int i=0; i < [menu count]; i++) {
UITableViewCell *cell = [tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:i inSection:0]];
cell.accessoryType = UITableViewCellAccessoryNone;
if (i == [indexPath row]) {
cell.accessoryType = UITableViewCellAccessoryCheckmark;
}
}
//선택표시 사라지기
[tableView deselectRowAtIndexPath:[tableView indexPathForSelectedRow] animated:YES];
'프로그램 경험 > iOS' 카테고리의 다른 글
[iPhone] UIView 캡쳐 (0) | 2010.11.29 |
---|---|
[iPhone] expected specifier-qualifier-list before 'virtual' (0) | 2010.11.19 |
[iPhone] UITableViewCell에 높이 조절하기 (0) | 2010.10.12 |
[iPhone] UIImageView에 테두리 넣기 (0) | 2010.10.06 |
[iPhone] 그룹 설정된 테이블뷰 바탕색상 변경하기 (0) | 2010.10.06 |