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.
have you tried a call to availableMediaTypesForSourceType: for testing the camera ?
Problem sloved through adding the MobileCoreServices framework and importing it with #import accordingly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With