简体   繁体   中英

How to set the single background image for bothe view and tabeview

我正在开发一种应用程序。我在当前视图中添加了一个tableview。我为当前视图添加了背景图像。并且每当tableview添加到视图时,tableview都会覆盖视图并且该背景图像不会出现。但是我只需要显示tablecell内容与该背景相关。请告诉我如何解决此问题。

Set the background Color for your table view to 'Clear Color' either through xib or through code. In your viewDidLoad method write:

yourTableView.backgroundColor = [UIColor clearColor];

Tell me if it helps!

Did you tried to clear the background color for UITableView.

tableviewObj.backgroundColor = [UIColor clearColor];

If this is not working, please post your sample code for our reference. Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM