简体   繁体   English

UITableview 单元格阴影未出现在 ios 13 中

[英]UITableview cell shadow not appearing in ios 13

Output Image i am using the following code to make shadow for uitableview cell.输出图像我使用以下代码为 uitableview 单元格制作阴影。 Its working fine on all ios versions except ios 13.它在除 ios 13 之外的所有 ios 版本上都可以正常工作。

    cell.layer.cornerRadius = 10
    cell.layer.masksToBounds = false
    cell.layer.shadowOffset = CGSize(width: 0, height: 3)
    cell.layer.shadowColor = UIColor(red: 81.0/255.0, green: 245.0/255.0, blue: 245.0/255.0, alpha: 1.0).cgColor
    cell.layer.shadowOpacity = 0.4
    cell.layer.shadowRadius = 2
    cell.brlogo.backgroundColor = UIColor.white

    cell.brlogo.layer.cornerRadius = 5.0

    cell.brlogo.layer.masksToBounds = true

How can i make shadow to uitableview cell on ios 13?如何在 ios 13 上为 uitableview 单元制作阴影? Any help would be highly appreciated任何帮助将不胜感激

在表格单元格中添加视图并为表格单元格约束提供一些较小的约束,并为该视图提供阴影并在该视图中添加其他组件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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