Reputation: 763
How to show Background image in UITableView Like
Please help me out. Thank you
Upvotes: 1
Views: 631
Reputation: 3107
Use this
UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"cloud.png"] ];
self.tableView.backgroundView = imageView;
[imageView release];
self.tableView.backgroundColor = [UIColor clearColor];
Upvotes: 14
Reputation: 11161
You can also go ahead and set the background color directly:
self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"image.jpg"]];
Upvotes: 2
Reputation: 69499
Add an UIImageView to the View, ontop of that place the UITableView and set the background color to clearcolor.
Upvotes: 9