我已经使用图像选择控制器调用设备摄像头。下面列出的代码在iOS 7下运行良好,但是当我在iOS 7上使用相同的代码启动相机时,我无法看到“使用”和“取消”按钮。
- (void)getCameraPicture {
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = NO;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.cameraCaptureMode = UIImagePickerControllerCameraCaptureModePhoto;
[self presentViewController:picker animated:YES completion:NULL];}
任何帮助都是非常感谢的。

更新:
当我尝试在一个示例应用程序中运行这段代码时,它运行得很好。(示例应用程序包含单个视图)。但是当我把它放在我的项目中时,按钮就没有显示出来。
发布于 2013-12-02 11:35:04
在守则中应该有:
...
picker.showsCameraControls = YES;发布于 2013-12-02 11:39:55
你在UIImagePickerController里签过这个UIImagePickerController吗?
https://stackoverflow.com/questions/20327218
复制相似问题