使用ALCameraViewController加载图像后,角半径丢失

时间:2018-12-07 00:43:43

标签: ios swift uiimageview

起初看起来像这样

Screen Shot

使用ALCameraViewController从库中选择要加载的照片后,看起来像这样

Screen Shot

这是我使用的代码

photo.layer.borderWidth = 1
photo.layer.masksToBounds = true
photo.layer.borderColor = UIColor.black.cgColor
photo.layer.cornerRadius = photo.frame.height/2
photo.clipsToBounds = true

如何防止它松开拐角半径?

Link to ALCameraViewController

0 个答案:

没有答案