Now, we are going to see how to set the background color or image for UITableView.
To set the Background color or image for UITableView set the background for parentview of the tableview and set the background color as clearcolor this shows the transparent color to so the parentview background.
The following code is for setting background image for tableview
self.parentViewController.view.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"tvbg.png"]];
self.tableView.separatorColor=[UIColor clearColor];
self.tableView.backgroundColor=[UIColor clearColor];
Thanks. it helps me alots ^.^
ReplyDelete