Changing the tableview text colour

Discussion in 'iOS Programming' started by jimhanika, Sep 6, 2008.

  1. jimhanika macrumors newbie

    Joined:
    Jun 3, 2006
    Location:
    London
    #1
    Hi All,

    I would really like to change the text colour of the only UITableView I have, but so far I would say it can't be done. The UITableView class has a separator control, but nothing I can see that changes the text.

    @property(nonatomic, retain) UIColor *separatorColor

    Anyone know of a way?
     
  2. davedelong macrumors member

    davedelong

    Joined:
    Sep 9, 2007
    Location:
    Right here.
    #2
    UITableViewCell's setTextColor: (it's a property setter method)
     
  3. nottooshabby macrumors 6502

    Joined:
    Jul 12, 2008
    #3
    Cool, I was wondering this too. How would I change the white background on the table view to black?
     
  4. davedelong macrumors member

    davedelong

    Joined:
    Sep 9, 2007
    Location:
    Right here.
    #4
    You read the documentation on UITableViewCell and notice "Aha! It has a backgroundView property that takes a UIView! That means I can just instantiate a new UIView programmatically, set the background color of that, and then give the UIView to the UITableViewCell as the backgroundView".

    Dave
     

Share This Page