0

我已经输入了这段代码:

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

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

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

}

但由于某种原因,复选标记没有出现。有人可以帮忙吗?

4

1 回答 1

0

实际上,我想通了,这是正确的做法,只是它有一个黑色的背景,所以很难看到。

于 2010-08-10T16:18:04.937 回答