UITableViewCellAccessoryCheckmark未在iOS 7中显示

我在单元格中显示Checkmark附件时遇到问题.
当我使用其他类型的配件时,它可以工作,但不能使用Checkmark附件.

它在iOS 6中完美运行,但在iOS 7上无法运行.
我何时失踪?

(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:EVENT_SELECTION_CELL_IDENTIFIER forIndexPath:indexPath];
    Event *event = [self.fetchedResultsController objectAtIndexPath:indexPath];
    cell.textLabel.text = event.name;
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    if ([event.current boolValue]) {
        cell.accessoryType = UITableViewCellAccessoryCheckmark;
    } else {
        cell.accessoryType = UITableViewCellAccessoryNone;
    }
    return cell;
}

解决方法

我解决了这个问题,改变了uitableview的色调

我通过InterfaceBuilder将uint的tintcolot更改为Default color

要么

TableView.tintColor =  [UIColor blackColor];

相关文章

当我们远离最新的 iOS 16 更新版本时,我们听到了困扰 Apple...
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只...
一般在接外包的时候, 通常第三方需要安装你的app进行测...
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应...