• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [iphone] UITableViewCell set cell attributes based on indexPath.row number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: [iphone] UITableViewCell set cell attributes based on indexPath.row number
  • From: Philip Vallone <email@hidden>
  • Date: Tue, 24 Nov 2009 05:17:46 -0500

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 necessary to make it right.
>
> In this case, if one of your red cells gets reused for rows 0-3, there is nothing here defining what the color should be.  So it will remain red.  Add an else condition that defines what the color should be for rows 0-3.
>
> Brian
>
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >[iphone] UITableViewCell set cell attributes based on indexPath.row number (From: Philip Vallone <email@hidden>)
 >Re: [iphone] UITableViewCell set cell attributes based on indexPath.row number (From: Brian Slick <email@hidden>)

  • Prev by Date: How to get notified pause when QTMovieView when clicked
  • Next by Date: Re: How to get notified pause when QTMovieView when clicked
  • Previous by thread: Re: [iphone] UITableViewCell set cell attributes based on indexPath.row number
  • Next by thread: Problem with QTMovie
  • Index(es):
    • Date
    • Thread