Questions tagged «mobilecoreservices»

6
使用未声明的标识符“ kUTTypeMovie”
我收到错误消息- 使用未声明的标识符'kUTTypeMovie' 在下面的代码中- -(IBAction)selectVideo:(id)sender { UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; imagePicker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum; imagePicker.mediaTypes = [[NSArray alloc] initWithObjects:(NSString *)kUTTypeMovie, nil]; imagePicker.delegate = self; [self presentModalViewController:imagePicker animated:YES]; } 它出什么问题了?

3
找不到符号:kUTTypeImage
我从苹果的文档中复制了一些代码-并遇到了以下两个错误: Undefined symbols for architecture i386: "_kUTTypeImage", referenced from: -[ImagePicker imagePickerController:didFinishPickingMediaWithInfo:] in ImagePicker.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) 我究竟做错了什么? 编辑:代码: - (IBAction) showSavedMediaBrowser { [self startMediaBrowserFromViewController: self usingDelegate: (id)self]; } - (BOOL) startMediaBrowserFromViewController: (UIViewController*) …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.