选择视频的UIImagePickerController可防止MPMoviePlayerViewController实例正常工作 [英] UIImagePickerController choosing video prevents MPMoviePlayerViewController instance from working

查看:100
本文介绍了选择视频的UIImagePickerController可防止MPMoviePlayerViewController实例正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个viewcontroller,我在popOver中提供了 UIImagePickerController 。如果用户选择了视频,则取消弹出框并转到下一个页面(viewcontroller)并尝试使用该页面上的 MPMoviePlayerViewController 播放任何电影无法这样做。

I have a viewcontroller where I present an UIImagePickerController in a popOver. If the user selects a video, then dismisses the popover and moves on to the next "page (viewcontroller)" and attempts to play any movies using MPMoviePlayerViewController on that page they are unable to do so.

我相信发生的事情是图片选择器中显示的播放器以某种方式被保留,因此这个新视频无法播放。我已经正确地解除了弹出窗口并且在尝试播放视频时没有收到任何错误。

I believe that what is happening is that the player displayed in the imagepicker is somehow being retained and therefore this new video cannot play. I've properly dismissed the popover and do not receive any errors while attempting to play the video.

有没有人遇到这样的事情?
iOS SDK 4.2 iPad

Has anyone encountered anything like this? iOS SDK 4.2 iPad.

推荐答案

[picker] popViewControllerAnimated:YES];

[picker popViewControllerAnimated:YES];

这篇关于选择视频的UIImagePickerController可防止MPMoviePlayerViewController实例正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆