clipsToBounds causes UIImage to not display in iOS10 & XCode 8

后端 未结 10 1736
南方客
南方客 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条回答
  •  猫巷女王i
    2020-12-08 10:55

    Using obj-c, moving the syntax from viewDidLoad to viewDidLayoutSubviews worked for me.

提交回复
热议问题