1

我在一个视图类中定义了这个函数, filter = GPUImageWhiteBalanceFilter

[self.stillCamera capturePhotoAsImageProcessedUpToFilter:self.filter withCompletionHandler:^(UIImage * image,NSError * error){
        @autoreleasepool {
            if (!image) {//得到照片发生错误
                if ([self.delegate respondsToSelector:@selector(gpuImageCameraViewStillImageCaptured:image:error:)]) {
                    [self.delegate gpuImageCameraViewStillImageCaptured:self image:nil error:error];
                }
            }
            else{
                if ([self.delegate respondsToSelector:@selector(gpuImageCameraViewStillImageCaptured:image:error:)]) {
                    [self.delegate gpuImageCameraViewStillImageCaptured:self image:image error:nil];
                }
            }
        }
    }];

我像这样在 ViewController 中完成委托

NSInvocationOperation *op = [[NSInvocationOperation alloc] initWithTarget:self selector:@selector(savePhotosThreadSingle:) object:image];
    [_threadQueue addOperation:op];
    [op release];

savePhotosThreadSingle:是一种将图像保存到照片库的方法, 但在 iPhone4s 中保存该图像大约需要 3 秒我该怎么办?谢谢

4

0 回答 0