我有一台iPad 2,我在我的viewDidLoad中测试这段代码我称之为
-(void)stillCameraStart{
GPUImageStillCamera *stillCam=[[GPUImageStillCamera alloc]init];
GPUImageView *filterView = [[GPUImageView alloc] initWithFrame:CGRectMake(0.0, 0.0,768, 1024)];
GPUImageGammaFilter *filter = [[GPUImageGammaFilter alloc] init];
[stillCam addTarget: filter];
[filter addTarget: filterView];
[stillCam startCameraCapture];
}
但我得到的只是白色屏幕。我做错了什么?我期待相机启动
答案 0 :(得分:1)
[self.view addSubview:filterView];