"

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)animated { 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];


  • 将MobileCoreServices.framework添加到您的目标


    您需要将MobileCoreServices.framework添加到目标,然后添加以下内容:

     #import <MobileCoreServices/UTCoreTypes.h>
    
    链接地址: http://www.djcxy.com/p/84296.html

    上一篇: 在iPhone 3G上录制视频

    下一篇: