我正在尝试通过单击按钮显示 UIImagePickerController 。当我单击按钮时,我在该行得到一个 SIGABRT:
[self presentModalViewController:camera animated:YES];
从代码块:
camera = [[UIImagePickerController alloc]init];
[camera setSourceType:UIImagePickerControllerSourceTypeCamera];
[camera setDelegate:self.view];
camera.showsCameraControls = NO;
camera.navigationBarHidden = YES;
camera.wantsFullScreenLayout = YES;
camera.toolbarHidden = YES;
camera.cameraOverlayView = bottomArrow;
[self presentModalViewController:camera animated:YES];
定义camera
的名称在哪里:UIImagePickerController
UIImagePickerController *camera;
在@interface
. 我的接口声明是:
@interface cameraViewController : UIViewController <UINavigationControllerDelegate, UIImagePickerControllerDelegate> {
有人可以看到我做错了什么吗?