Why does this work:
- (void)tableView: (UITableView *)tableView willDisplayCell: (UITableViewCell *)cell forRowAtIndexPath: (NSIndexPath *)indexPath {
cell.backgroundColor = [UIColor redColor];
}
but this doesn't?
- (void)tableView: (UITableView *)tableView willDisplayCell: (UITableViewCell *)cell forRowAtIndexPath: (NSIndexPath *)indexPath {
cell.backgroundColor = [UIColor colorWithRed:250 green:100 blue:100 alpha:1];
}
Am I thus constrained to the pre-defined UIColor colours?