【发布时间】:2017-03-06 04:35:34
【问题描述】:
【问题讨论】:
-
使用清晰的颜色
标签: ios swift xcode swift3 uicollectionview
【问题讨论】:
标签: ios swift xcode swift3 uicollectionview
将颜色设置为清除并将背景视图设置为空视图。在viewDidLoad中调用以下行
self.yourcollectionViewName?.backgroundColor = UIColor.clear
self.yourcollectionViewName?.backgroundView = UIView(frame: CGRect.zero)
或无代码的其他选择
进入inspector Attribute,选择storyboard中的background color field并将其更改为Clear Color。
【讨论】:
您可以将backgroundColor 设置为.clear:
cell.contentView.backgroundColor = UIColor.clear
【讨论】: