About the App Store's Cell style

Discussion in 'iOS Programming' started by anim510, Oct 24, 2008.

  1. anim510 macrumors newbie

    Joined:
    Oct 20, 2008
    #1
    hi all,

    I want to change the tableView's cell's style, just like the App Store's style.

    I use this code,

    Code:
        if((indexPath.row+1)%2 == 0)
           cell.backgroundColor = [UIColor grayColor];
    
    But it doesn't work.

    kind regards,
    Neil.
     
  2. jnic macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #2
    Try adding a UIImageView behind the table, and setting its image to the background you want.

    Then set the table's background colour to transparent with:

    Code:
    tableView.backgroundColor = [UIColor clearColor];
    So that the background image shows through.
     
  3. anim510 thread starter macrumors newbie

    Joined:
    Oct 20, 2008
    #3
    Thanks guys


    Thanks for your suggestion ! :)
     

Share This Page