Hi All,
its funny,
i wrote following code for check and uncheck cells in my uitableview
- (void)tableView
UITableView *)tableView didSelectRowAtIndexPath
NSIndexPath *)indexPath {
UITableViewCell *thisCell = [tableView cellForRowAtIndexPath:indexPath];
if (thisCell.accessoryType == UITableViewCellAccessoryNone) {
thisCell.accessoryType = UITableViewCellAccessoryCheckmark;
}else{
thisCell.accessoryType = UITableViewCellAccessoryNone;
}
}
but the check on/off does not seem to work. I have written a custom cell and have added a label and textbox added and laid out in its layoutsubviews function. I disabled the codes for these controls to see if the check mark is being hidden by them, it seems the cell never shows check mark. is that feature broken somehow ?
ch
its funny,
i wrote following code for check and uncheck cells in my uitableview
- (void)tableView
UITableViewCell *thisCell = [tableView cellForRowAtIndexPath:indexPath];
if (thisCell.accessoryType == UITableViewCellAccessoryNone) {
thisCell.accessoryType = UITableViewCellAccessoryCheckmark;
}else{
thisCell.accessoryType = UITableViewCellAccessoryNone;
}
}
but the check on/off does not seem to work. I have written a custom cell and have added a label and textbox added and laid out in its layoutsubviews function. I disabled the codes for these controls to see if the check mark is being hidden by them, it seems the cell never shows check mark. is that feature broken somehow ?
ch