"_KUTTypeMovie_" Referenced from: Error in xcode
Hey guys I'm trying to create an app in xcode that in long story short records video, and xcode is proclaiming the following: "KUTTypeMovie Referenced from:"
Any help would be awesome, thanks!
Here is my code.
#import < MobileCoreServices/UTCoreTypes.h>
@implementation OverlayViewController
(void) viewDidAppear:(BOOL)a开发者_运维技巧nimated { OverlayView *overlay = [[OverlayView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGTH)];
// Create a new image picker instance: UIImagePickerController *picker = [[UIImagePickerController alloc] init];
// Set the image picker source: picker.sourceType = UIImagePickerControllerSourceTypeCamera; picker.mediaTypes = [NSArray arrayWithObject:(NSString *)kUTTypeMovie];
Add the MobileCoreServices.framework to your target
You need to add the MobileCoreServices.framework to your target then add the following:
#import <MobileCoreServices/UTCoreTypes.h>
精彩评论