Xcode - 崩溃在ipad上打开camara

时间:2016-02-21 22:41:01

标签: xcode ipad uiimagepickercontroller

我的iphone应用程序使用camara拍照 在ipad上安装应用程序,访问camara会使应用程序崩溃 有人知道在iphone和ipad之间使用选择器控制器是否存在差异?

提前Tx

--- --- EDIT

我打电话给我使用的卡马拉的代码是:

- (void) showCamera{
    UIImagePickerController * imagePickerController = [[UIImagePickerController alloc] init];
    imagePickerController.delegate = self;
    imagePickerController.sourceType =  UIImagePickerControllerSourceTypeCamera;
    imagePickerController.allowsEditing =YES;
    [self presentViewController:imagePickerController animated:YES completion:nil];
}

0 个答案:

没有答案