美文网首页
Swift 设置圆角无效

Swift 设置圆角无效

作者: cw0925 | 来源:发表于2019-01-17 16:52 被阅读6次

    let image = info[UIImagePickerController.InfoKey.originalImage] as! UIImage

    对self.headerIcon 设置圆角,当将拍照得到的image赋给self.headerIcon时并不能得到一个完整的圆

    将let  image = info[UIImagePickerController.InfoKey.editedImage] as! UIImage 改为editedImage才会得到圆

    相关文章

      网友评论

          本文标题:Swift 设置圆角无效

          本文链接:https://www.haomeiwen.com/subject/wqgidqtx.html