Return to Snippet

Revision: 42224
at March 1, 2011 22:24 by BenClayton


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

Initial URL

                                

Initial Description

                                

Initial Title
iPhone: Set backgroud on a UITableView

Initial Tags

                                

Initial Language
Java