Posted By

BenClayton on 03/01/11


Tagged


Versions (?)

iPhone: Set backgroud on a UITableView


 / Published in: Java
 

  1. UIImageView* background = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"listBackground.png"] ] autorelease];
  2. background.contentMode = UIViewContentModeCenter; // don't stretch
  3.  
  4. // Only on 3.2 onwards..
  5. if ([self.tableView respondsToSelector:@selector(setBackgroundView:)] ) {
  6. self.tableView.backgroundView = background;
  7. }

Report this snippet  

You need to login to post a comment.