我已经把这段代码:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

     UITableViewCell * tableCell = [self.tableView cellForRowAtIndexPath:indexPath];

     tableCell.accessoryType = UITableViewCellAccessoryCheckmark;
     [tableView deselectRowAtIndexPath:(NSIndexPath *)indexPath animated:YES];

}

但由于某些原因,对号不会出现。可能有人帮助?

有帮助吗?

解决方案

其实,我想通了,这就是做正确的方式,它只是它有一个黑色的BG所以这是很难看到的。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top