Почему это работает:
- (void)tableView: (UITableView *)tableView willDisplayCell: (UITableViewCell *)cell forRowAtIndexPath: (NSIndexPath *)indexPath {
cell.backgroundColor = [UIColor redColor];
}
но это нет?
- (void)tableView: (UITableView *)tableView willDisplayCell: (UITableViewCell *)cell forRowAtIndexPath: (NSIndexPath *)indexPath {
cell.backgroundColor = [UIColor colorWithRed:250 green:100 blue:100 alpha:1];
}
Неужели я ограничен предварительно определенными цветами UIColor?