I'm having a problem showing the Checkmark accessory in my cell. When I use something another type of accessory it works but not with the Checkmark accessory.
It works perfectly in 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;
}
I solved this issues changing the tint color of the uitableview
I changed the tintcolot of uitable by InterfaceBuilder to Default color
or
TableView.tintColor = [UIColor blackColor];
In case this might help somebody.... for me, setting the tableview tint color did not work, but setting the cell tint color in cellForRowAtIndexPath did work:
cell.tintColor = [UIColor grayColor];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With