mobilecoreservices

Symbol not found: kUTTypeImage

半城伤御伤魂 提交于 2019-11-29 21:58:58
I copied some bits of code from apple's documentation - and I got these 2 errors: 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) What am I doing wrong? EDIT: The code: - (IBAction) showSavedMediaBrowser { [self startMediaBrowserFromViewController: self usingDelegate: (id)self]; } - (BOOL) startMediaBrowserFromViewController: (UIViewController*) controller

Use of undeclared identifier 'kUTTypeMovie'

强颜欢笑 提交于 2019-11-28 18:30:19
I am getting the error message - Use of undeclared identifier 'kUTTypeMovie' in the below code - -(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]; } What's wrong with it? You have to add the framework MobileCoreServices to the project, and then import it: Objective C: #import

Symbol not found: kUTTypeImage

蓝咒 提交于 2019-11-28 17:18:05
问题 I copied some bits of code from apple's documentation- and I got these 2 errors: 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) What am I doing wrong? EDIT: The code: - (IBAction) showSavedMediaBrowser { [self startMediaBrowserFromViewController: self

Use of undeclared identifier 'kUTTypeMovie'

拟墨画扇 提交于 2019-11-27 11:23:50
问题 I am getting the error message - Use of undeclared identifier 'kUTTypeMovie' in the below code - -(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]; } What's wrong with it? 回答1: