UITableView에 확인란을 넣는 데 문제가 있습니다. 나는 여기에 내 코드의 일부를 게시하고있다.테이블 뷰의 CheckBox
- (NSCell *)tableView:(NSTableView *)tableView dataCellForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
{
NSButtonCell *cell=[[NSButtonCell alloc] init];
NSString *strDisplayPlaylistName;
strDisplayPlaylistName=[playListNameArray objectAtIndex:row];
[cell setTitle:strDisplayPlaylistName];
[cell setAllowsMixedState:YES];
[cell setButtonType:NSSwitchButton];
return cell;
}
- (void)tableView:(NSTableView *)aTableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex {
NSCell *aCell = [aTableColumn dataCellForRow:rowIndex];
[aCell setNextState];
//NSCell *aCell=[aAddedCells objectAtIndex:rowIndex];
//[aCell setNextState];
}
UITableView 내에 체크 박스가 있습니다. 하지만 문제는 버튼을 선택 취소 할 수 없다는 것입니다. 할 일이 더 많습니까? 나는 코코아 프로그래밍에 익숙하지 않다.