I am using UITableView.I set the tableview background image like this.
self.tableView.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"bg.png"]];

I am using table style as grouped. But in display I am getting black shadow on left and right side of grouped cell.
How to remove this black shadow?
Thanks in Advance.
Try this..
self.tableView.backgroundColor=[UIColor clearColor];
UIImage *backgroundImage = [UIImage imageNamed:@"sample2.png"];
UIImageView *backgroundImageView = [[UIImageView alloc]initWithImage:backgroundImage];
self.tableView.backgroundView=backgroundImageView;
[backgroundImageView release];
First, set the background image for the table's parent view to the image that you want:
[parentView setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"bg.png"]];
Then, set the background image for the UITableView to clearColor:
self.tableView.backgroundColor = [UIColor clearColor];
That should solve the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With