Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableView - transparent background in iOS 7

Tags:

I am checking my app with ios 7 beta. I have set background color of UITableView to clear color. Its still showing white background. Is there any other way around to make it transparant?

like image 831
user1113101 Avatar asked Jun 13 '13 07:06

user1113101


2 Answers

I couldn't make it work but the following worked perfectly :

-(void)tableView:(UITableView *)tableView   willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath  {      [cell setBackgroundColor:[UIColor clearColor]];  } 
like image 121
jfgrang Avatar answered Sep 20 '22 02:09

jfgrang


Setting tableview backgroundColor to clear color working absolutely fine in iOS 7 chk this
screenshot see those separator lines for the table cells while the tableview is transparent.

like image 33
Saurabh Passolia Avatar answered Sep 22 '22 02:09

Saurabh Passolia