Set background color for a view


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // with an image:
  2. self.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"whiteBackground.png"]];
  3.  
  4. // with a UIColor value
  5. self.backgroundColor = [UIColor redColor]

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.