redribben

background

Dec 31st, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     //Setting the background for the MenuViewController
  2.     UIImage *image = [UIImage imageNamed:@"Pink-And-Blue-Background.jpg"];
  3.     UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
  4.     imageView.contentMode = UIViewContentModeScaleAspectFill;
  5. ////    imageView.contentMode = UIControlContentHorizontalAlignmentLeft;
  6.  
  7.     // Add image view on top of table view
  8.     [self.tableView addSubview:imageView];
  9.    
  10.     // Set the background view of the table view
  11.     self.tableView.backgroundView = imageView;
Advertisement
Add Comment
Please, Sign In to add comment