【发布时间】:2017-05-23 12:37:05
【问题描述】:
我正在尝试在我的 Xcode 项目中实现一个裁剪窗格。
我收到此错误,我不知道为什么。
谁能帮忙。
let imageRef = imageToCrop!.cgImage!.cropping(to: visibleRect)
let result = UIImage(CGImage: imageRef!, scale: imageToCrop!.scale,
orientation: imageToCrop!.imageOrientation)
return result
}
但出现此错误
'init(CGImage:scale:orientation:)'的模糊使用
【问题讨论】:
标签: swift xcode cocoapods crop