I have a problem with a Checkmark accessory in my cell. When I use something of a different type of accessory, it works, but not with the Checkmark accessory.
It works great on iOS 6, but not on iOS 7. When am I missing?
(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; }
source share