ボタンのクリックから 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> {
誰かが私が間違っていることを見ることができますか?