Settings app stripey background

Discussion in 'iOS Programming' started by MrA, Jul 17, 2008.

  1. MrA
    macrumors newbie

    Joined:
    Jul 13, 2008
    #1
    Hi all,

    The settings app has a vertically stripey background. How can I use this as a background to a UIView?

    Thanks.
     
  2. macrumors 6502

    Joined:
    Apr 28, 2008
    #2
    As far as I know, that's the background for a grouped UITableView... I don't know if there's any way to get that background for a regular UIView.
     
  3. MrA
    thread starter macrumors newbie

    Joined:
    Jul 13, 2008
    #3
    ^ That's unfortunate. :( I guess I could recreate it using core graphics, but I'd like something more "standard".

    EDIT: Done... the non-standard way. I just make a 7x1 PNG with the pattern, loaded it with UIImage and used drawAsPatternInRect: to draw it in the drawRect method of my UIView. I'm posting here for reference in case anyone needs to do the same.
     
  4. macrumors newbie

    Joined:
    Jul 15, 2008
    #4
    myView.backgroundColor = [UIColor groupTableViewBackgroundColor];
     
  5. MrA
    thread starter macrumors newbie

    Joined:
    Jul 13, 2008
    #5
    Thank you! It's exactly what I wanted.
     

Share This Page