设置了videoQuality仍然无法避免视频自动压缩是怎么回事
UIImagePickerController*imagePicker=[[UIImagePickerControlleralloc]init];imagePicker....
UIImagePickerController *imagePicker =[[UIImagePickerController alloc] init]; imagePicker.videoQuality = UIImagePickerControllerQualityTypeHigh; imagePicker.allowsEditing = YES; imagePicker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum; //imagePicker.mediaTypes = [NSArray arrayWithObjects:@"public.image",nil]; imagePicker.mediaTypes = [NSArray arrayWithObjects:@"public.movie",nil]; imagePicker.videoMaximumDuration = 1.0; [imagePicker setDelegate:self]; [self presentModalViewController:imagePicker animated:YES]; [imagePicker release];代码如上,我的环境是xcode 4.0 sdk4.3求高手解答
展开
2个回答
2013-07-27
展开全部
imagePicker.mediaTypes = [NSArray arrayWithObjects:@"public.movie",nil];这是什么情况这样试试imagePicker.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil];
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-07-27
展开全部
这个问题貌似是模拟器(我的是4.3)的bug,据说在真机上就可以
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询