我需要做什么才能将我的程序生成的图像(可能是相机,可能不是)保存到iPhone上的系统照片库?
我正在使用GPUImage处理本地照片,我正在使用它来初始化:
localImageSource = [[GPUImagePicture alloc] initWithImage:selectedImage];
Run Code Online (Sandbox Code Playgroud)
然后我添加过滤器,我可以在屏幕上看到它.
问题是我需要UIImage来保存它,但是当我打电话时:
[localImageSource imageFromCurrentlyProcessedOutput]
Run Code Online (Sandbox Code Playgroud)
我一无所获.
请帮忙!