使用xcode 8.0 mac os 10.12在iOS 10.0.0上获得以下问题。它适用于iOS 9.3.5。
***由于未捕获的异常终止应用' NSInvalidArgumentException',原因:' videoCameraImage必须是视频或音频'。
请帮我解决上述问题。
答案 0 :(得分:0)
我认为您可能需要为您的应用启动UIImagePickerController
。
@property (strong, nonatomic) UIImagePickerController *imagePickerController;
- (UIImagePickerController *)imagePickerController {
if (_imagePickerController == nil) {
_imagePickerController = [[UIImagePickerController alloc] init];
}
return _imagePickerController;
}
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
self.imagePickerController = [[UIImagePickerController alloc] init];
}