Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

hassoon

macrumors regular
Original poster
Jun 8, 2009
154
0
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.
 
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.

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

Code:
[self.window.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"yourimage.png"]]];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.