簡體   English   中英

UITableview 單元格陰影未出現在 ios 13 中

[英]UITableview cell shadow not appearing in ios 13

輸出圖像我使用以下代碼為 uitableview 單元格制作陰影。 它在除 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

如何在 ios 13 上為 uitableview 單元制作陰影? 任何幫助將不勝感激

在表格單元格中添加視圖並為表格單元格約束提供一些較小的約束,並為該視圖提供陰影並在該視圖中添加其他組件

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM