开发者

"_KUTTypeMovie_" Referenced from: Error in xcode

开发者 https://www.devze.com 2023-01-06 14:12 出处:网络
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:\"

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>
0

精彩评论

暂无评论...
验证码 换一张
取 消