为什么这个工作:的UITableViewCell古怪的着色问题:
- (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颜色?
他们需要除以255. :)谢谢。 – 2010-10-21 13:34:40