ios5 - How i can change iphone view background ? -
I used this code, however, the scene background did not change.
UIColor * background = [[UIColor alloc] initWithPatternImage: [UIImage imageNamed: @ "background.png"]]; [[See itself] setBackgroundColor: background]; [Background release];
Try:
self.view BackgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed: @ "background.png"]]; This will save your memory to create background variables.
Comments
Post a Comment