Re: [iphone] UITableViewCell set cell attributes based on indexPath.row number

2009-11-24 Thread Philip Vallone
Thanks Brian. That did the trick. Regards, Phil On Nov 23, 2009, at 11:55 PM, Brian Slick wrote: > The stuff outside of the if (cell == nil) block will be performed on each > cell, whether new or reused. You need to assume that the current display of > the cell is "wrong", and do what is ne

Re: [iphone] UITableViewCell set cell attributes based on indexPath.row number

2009-11-23 Thread Brian Slick
The stuff outside of the if (cell == nil) block will be performed on each cell, whether new or reused. You need to assume that the current display of the cell is "wrong", and do what is necessary to make it right. In this case, if one of your red cells gets reused for rows 0-3, there is nothin

[iphone] UITableViewCell set cell attributes based on indexPath.row number

2009-11-23 Thread Philip Vallone
Hi List, If I have an UITableViewCell and want to set the cell attributes based on indexPath.row number, how could I do this? In the below example, the cells are drawn dynamically and work until the user moves the table. When the first 4 four rows are redrawn, their font changes. How do I set t