I have been trying to get video to work and have been getting an odd issue with a compiler issue. My code looks like this.
UIImagePickerController * imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
NSArray *sourceTypes = [UIImagePickerController availableMediaTypesForSourceType:imagePicker.sourceType];
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
imagePicker.mediaTypes = [NSArray arrayWithObject:(NSString *)kUTTypeMovie];
[self presentModalViewController:imagePicker animated:YES];
[imagePicker release];
The compiler Error I am getting says:
Undefined symbols: "_kUTTypeMovie", referenced from: _kUTTypeMovie$non_lazy_ptr in EditViewController.o (maybe you meant: _kUTTypeMovie$non_lazy_ptr) ld: symbol(s) not found collect2: ld returned 1 exit status
I have been working at this for a while and can't figure out where my issue is. I have imported Core Services so I have access to kUTTypeMovie.