【发布时间】:2016-07-25 12:50:54
【问题描述】:
我需要在 Swift 3.0 中实现这个 Objective-C 代码(我使用的是 Xcode 8 Beta 3):
// Note: this code comes from an Obj-C category on UIImage
CGImageRef imageRef = CGImageCreateWithImageInRect(self.CGImage, cropRect);
UIImage *image = [UIImage imageWithCGImage:imageRef scale:self.scale orientation:self.imageOrientation];
我在CGImageCreateWithImageInRect() 的最新文档中找不到任何内容。
【问题讨论】:
标签: swift cgimage swift3 xcode8-beta3