-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. 財產未被視圖控制器識別