📜  在 uicollectionview 中添加框阴影 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:56.211000             🧑  作者: Mango

代码示例1
myCollection.layer.shadowColor = UIColor.blackColor().CGColor
myCollection.layer.shadowOffset = CGSizeMake(0, 1)
myCollection.layer.shadowOpacity = 1
myCollection.layer.shadowRadius = 1.0
myCollection.clipsToBounds = false
myCollection.layer.masksToBounds = false