how to display text on a UITableViewStyleGrouped background?

Discussion in 'iOS Programming' started by sujithkrishnan, Sep 4, 2008.

  1. sujithkrishnan macrumors 6502

    Joined:
    May 9, 2008
    Location:
    Bangalore
    #1
    Hi all.


    Hoe to get the text to appear on a UITableViewStyleGrouped background without a white background for the text..

    I made the GROUPED STYLE view for a viewController, added a label with a text...

    But the text is coming with label's background (white color)...
    Can we make it transparent (Label bground)???

    I want something like what i attached.. (Please see the attachment)

    I realized that what is in the attchment is not a LABEL, but the name-field is a UITableViewCell only... (But how they make invisible the background of cell?)
     

    Attached Files:

  2. mccannmarc macrumors 6502

    mccannmarc

    Joined:
    Aug 15, 2008
    Location:
    Manchester, UK
    #2
    [Label setBackgroundColor:[UIColor clearColor]];
     
  3. sujithkrishnan thread starter macrumors 6502

    Joined:
    May 9, 2008
    Location:
    Bangalore
    #3
    Even though we set clearColor, the tableViewCell is having some white color which is not going transparent...

    SO any idea???
     
  4. North Bronson macrumors 6502

    Joined:
    Oct 31, 2007
    Location:
    San José
    #4
    You actually want the table *cell* to be transparent? Why? It seems like you'll take quite a performance hit. Apple really makes it sound like those cells should stay opaque.
     
  5. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #5
    Can you provide a screenshot to demonstrate the problem?
     

Share This Page