嘿家伙我试图创建一个应用程序在xcode长篇短片记录视频,和xcode是宣布以下内容:“KUTTypeMovie引用:”

任何帮助将是真棒,谢谢!

这是我的代码。

#import <MobileCoreServices / UTCoreTypes.h>

@implementation OverlayViewController

  • (void)viewDidAppear:(BOOL)animated {OverlayView * overlay = [[OverlayView alloc] initWithFrame:CGRectMake(0,0,SCREEN_WIDTH,SCREEN_HEIGTH)];

    //创建一个新的图像选择器实例:UIImagePickerController * picker = [[UIImagePickerController alloc] init];

    //设置图片选择器源代码:picker.sourceType = UIImagePickerControllerSourceTypeCamera; picker.mediaTypes = [NSArray arrayWithObject:(NSString *)kUTTypeMovie];


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


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

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

    上一篇: "

    下一篇: Question about iPhone 3GS Image Picker Controller