简体   繁体   中英

How to add a white view under cell in to the UITableView?

I will like add a white view under all cell in to the UITableView, because TableView background is Clear Color, and when Cell N is one or two under these is clear.

Screenshot

I will like under these cells view color will white.

PD Sorry, my english is so bad. =(

尝试设置tableview的页脚视图,并使其具有白色背景。

You mentioned above that there are UIView elements on your UITableView background so setting he background color of it would not work, correct?

You could try setting the background color of the UITableViewCell itself, and add any of your custom views as subviews on the cell.

cell.backgroundColor = [UIColor whiteColor];

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