-1
A
回答
0
使用下面的代码:
-(UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *cellIdentifier = @"my cell id";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
if (nil == cell) {
cell = [[[UITableViewCell alloc] init] autorelease];
}
//your custom init of a cell here
...
if (indexPath.row == 0) {
cell.textLabel.textColor = [UIColor whiteColor];
} else if (indexPath.row == 1) {
cell.textLabel.textColor = [UIColor redColor];
} ...
return cell;
}
相关问题
- 1. iphone的dealloc财产
- 2. 楠无视财产
- 3. 获取财产的财产
- 4. 日食 - 何时选择视图与财产与透视与等
- 5. 地图私有财产
- 6. 试图用Range.Formula财产
- 7. 财产
- 8. 为代表弱财产
- 9. PostgreSQL的混淆财产表
- 10. iPhone:在表视图细胞
- 11. 要财产,还是不要财产?
- 12. 绑定Checkbox.Checked财产财产上的DataSet
- 13. modifiy项财产
- 14. HitTest财产
- 15. background-size:cover;财产
- 16. 财产继承
- 17. 势必财产
- 18. 火箭财产
- 19. 通过财产
- 20. AlphaTestEffect.Projection财产
- 21. 虚拟财产
- 22. SqlMembershipProvider.ApplicationName财产
- 23. 的NSDictionary财产
- 24. 财产3届
- 25. ThreadLocal的财产
- 26. 落实财产
- 27. 财产申报
- 28. 玉鬼财产
- 29. MaxReceivedMessageSize财产
- 30. 财产未被视图控制器识别