1

How to show Background image in UITableView Like

enter image description here

Please help me out. Thank you

0

3 Answers 3

14

Use this

UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"cloud.png"] ]; self.tableView.backgroundView = imageView; [imageView release]; self.tableView.backgroundColor = [UIColor clearColor]; 
Sign up to request clarification or add additional context in comments.

Comments

9

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

2 Comments

You can also assign images to the background of individual cells using -[UIColor colorWithPatternImage:UIImage];
@TheBlack, that only works correctly if the image can repeat it self.
2

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

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.