开发者

Need tableview grouped background in UIView?

开发者 https://www.devze.com 2022-12-09 02:50 出处:网络
I have Tableview as XIB file, in that inspector I set style as grouped. so the BackGround will be in one format (vertical white lines and light blue) behind the cell.

I have Tableview as XIB file, in that inspector I set style as grouped. so the BackGround will be in one format (vertical white lines and light blue) behind the cell. I want to bring in My UIView. How? There is n开发者_如何学JAVAo style component to set it. How can I do it?


If I understand right, you want to set background color of your UIView to the same as UITableView has? If so, just write a line of code [myView setBackgroundColor:[UIColor groupTableViewBackgroundColor]]; If you want to set your view as a background of yout table, you can set your tableView's background to [UIColor clearColor] and add it as subview to your view.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号