how to make your table look like ipod on the iphone

Discussion in 'iOS Programming' started by Howiieque, Aug 25, 2009.

  1. Howiieque macrumors regular

    Joined:
    Feb 1, 2009
    #1
    hi. guys. do you notice that the gradient of the table of ipod on the iphone.
    the odd number cells seem like to be lighter, while even number cells darker.
    and the the cells on the relatively high position would be lighter. the colour would change while you scroll the table.
    i used DigitalColor Meter.appto analyse it. as if by magic.

    do you have a clue how to accomplish it?:)

    by the way, the app store make the table white and blue alternatively. is there a convenient method(sdK) to do it? or i must make two kind of views for the cells and assign to them on condition?
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    I suspect they are just alternating the background color of each cell based on the row number whilst in the cellForRowAtIndexPath: delegate method.
     

Share This Page