tags:

views:

14

answers:

1

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];

A: 

Add the MobileCoreServices.framework to your target

Petr