我正在尝试使用ALAssetsGroup#posterImage
方法创建UIImage
。 在Objective-C中,我可以简单地调用[UIImage imageWithCGImage:group.posterImage]
,但在Swift中,UIImage(CGImage:group.posterImage)
会给我一个编译器错误:
Could not find an overload for 'init' that accepts the supplied arguments
我做错了什么?