xcode help

Discussion in 'Web Design and Development' started by hassoon, May 23, 2012.

  1. hassoon macrumors regular

    Jun 8, 2009
    hi, i wanna add a background picture to the window that i'm working on and i need help to do that. tried image view but it seems it have nothing to do with it because when i put a text field above the image, the blueish background appears and it makes the pic unclear. Thank you.
  2. robcontreras macrumors newbie

    May 24, 2012
    I'm not in front of my Xcode equipped computer but i believe this will do the trick

    [self.window.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"yourimage.png"]]];

Share This Page