user532445
user532445

Reputation: 763

Background on UITableView?

How to show Background image in UITableView Like

enter image description here

Please help me out. Thank you

Upvotes: 1

Views: 631

Answers (3)

iProgrammer
iProgrammer

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

leviathan
leviathan

Reputation: 11161

You can also go ahead and set the background color directly:

self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"image.jpg"]];

Upvotes: 2

rckoenes
rckoenes

Reputation: 69499

Add an UIImageView to the View, ontop of that place the UITableView and set the background color to clearcolor.

Upvotes: 9

Related Questions