Skip to main content
image needs to be a pointer. Adding a note about the @2x image to get past the requirement that an edit be at least 6 characters.
Source Link

I would simply set the backgroundColor property of the UITableView itself. You can use UIColor's +colorWithPatternImage: method to convert a UIImage into a UIColor (that will repeat across the entire view, if not big enough):

// From within UITableViewController's -viewDidLoad: UIImage image*image = [UIImage imageNamed:"yourImage.png"]; self.tableView.backgroundColor = [UIColor colorWithPatternImage:image];

Simply add yourImage.png and yourImage@2x.png to your application bundle, size it appropriately, and you're all set.

I would simply set the backgroundColor property of the UITableView itself. You can use UIColor's +colorWithPatternImage: method to convert a UIImage into a UIColor (that will repeat across the entire view, if not big enough):

// From within UITableViewController's -viewDidLoad: UIImage image = [UIImage imageNamed:"yourImage.png"]; self.tableView.backgroundColor = [UIColor colorWithPatternImage:image];

Simply add yourImage.png to your application bundle, size it appropriately, and you're all set.

I would simply set the backgroundColor property of the UITableView itself. You can use UIColor's +colorWithPatternImage: method to convert a UIImage into a UIColor (that will repeat across the entire view, if not big enough):

// From within UITableViewController's -viewDidLoad: UIImage *image = [UIImage imageNamed:"yourImage.png"]; self.tableView.backgroundColor = [UIColor colorWithPatternImage:image];

Simply add yourImage.png and yourImage@2x.png to your application bundle, size it appropriately, and you're all set.

Source Link
Tim
  • 60.3k
  • 19
  • 159
  • 165

I would simply set the backgroundColor property of the UITableView itself. You can use UIColor's +colorWithPatternImage: method to convert a UIImage into a UIColor (that will repeat across the entire view, if not big enough):

// From within UITableViewController's -viewDidLoad: UIImage image = [UIImage imageNamed:"yourImage.png"]; self.tableView.backgroundColor = [UIColor colorWithPatternImage:image];

Simply add yourImage.png to your application bundle, size it appropriately, and you're all set.