简体   繁体   中英

UITableview cell shadow not appearing in ios 13

Output Image i am using the following code to make shadow for uitableview cell. Its working fine on all ios versions except ios 13.

    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? Any help would be highly appreciated

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

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