2

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

Ryan
  • 21
  • 2

2 Answers2

1

Add the MobileCoreServices.framework to your target

Petr
  • 11
  • 1
0

You need to add the MobileCoreServices.framework to your target then add the following:

 #import <MobileCoreServices/UTCoreTypes.h>
Johann
  • 12,158
  • 11
  • 62
  • 89