Is there a way to fix the background image of the UITableView
I have set the background of my UITable with a custom image.
self.tableView.backgroundColor = [UIColor clearColor];
self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"background.png"]];
The problem I'm running into is the background image scrolling and doesn't look good at the top and bottom of the screen where you see the image joining.
Is there a way to fix the position of the background image and just scroll the table to the top?
+2
a source to share
2 answers
You need to put the UIImageView under the table view, set the background color to the table view to clear (or in IB, set its background opacity property to 0). Then design your CELL views to have clear areas with which to view the background image. You can do this programmatically or in IB (it's easier to render in IB, but the code to tie it all together is a bit tricky).
0
a source to share