从照片库中仅选择风景视频/图像

时间:2014-11-25 10:18:52

标签: ios objective-c uiimagepickercontroller

有没有办法从目标C中的库中选择横向视频? mediaTypes属性是否只能选择以横向模式记录的视频?有没有办法在popOver中只显示来自图书馆的风景录制视频?或者有任何解决方法吗?此apple doc不符合我的要求。

UIImagePickerController *mediaUI = [[UIImagePickerController alloc] init];
mediaUI.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;

mediaUI.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil]; //Any way to pick only landscape videos? Or is there any workaround?
mediaUI.allowsEditing = YES;
mediaUI.delegate = self;
self.popoverController = [[UIPopoverController alloc]
                                              initWithContentViewController:mediaUI];

self.popoverController.delegate = self;

[self.popoverController presentPopoverFromRect:CGRectMake(250, self.videoMenuView.frame.origin.y-10, 40, 40) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES];

0 个答案:

没有答案