Hey all,
When my table view loads, on the viewDidLoad I add this line of code:
That line of code correctly displays the image on the table view but it also tiles the image on each of the cells, which is not what I want, as shown on the image attached to this post.
I just want the background image to be the background of the table not each table cell.
Also note that I originally had the background image applied to the view but the problem with that is the blue navigation bar on top clipped part of the image:
thanks for response
When my table view loads, on the viewDidLoad I add this line of code:
Code:
self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"unit_list_bg.png"]];
That line of code correctly displays the image on the table view but it also tiles the image on each of the cells, which is not what I want, as shown on the image attached to this post.
I just want the background image to be the background of the table not each table cell.
Also note that I originally had the background image applied to the view but the problem with that is the blue navigation bar on top clipped part of the image:
Code:
self.parentViewController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"unit_list_bg.png"]];
self.tableView.backgroundColor = [UIColor clearColor];
thanks for response