clipsToBounds causes UIImage to not display in iOS10 & XCode 8

后端 未结 10 1743
南方客
南方客 2020-12-08 10:28

I switched my project over to new beta versions of iOS 10 and XCode 8. In all three areas of my app where I use:

imageView.layer.cornerRadius = imageView.fra         


        
10条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-08 10:38

    I had the same problem and calling layoutIfNeeded before all the rounded corner / clipsToBounds stuff fixed the issue. iOS 10 GM with xcode 8 GM causes views to disappear due to roundedCorners & clipsToBounds

提交回复
热议问题