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

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -