适用于旧版本 iPhone SDK 的 MPMoviePlayerViewController
如果我在 3.2/4.0 中使用 MPMoviePlayerViewController ,它构建得很好。
如果我在 3.1.3 及以下版本中使用它,则构建会失败并出现错误,
Expected specifier-qualifier-list before MPMoviePlayerViewController'
我在 113 个位置使用此类,因此我收到 113 个错误。
解决这个关键问题的最佳方法是什么?
If I use MPMoviePlayerViewController in 3.2/4.0 it builds fine.
If I use it in 3.1.3 and below the build fails with error
Expected specifier-qualifier-list before MPMoviePlayerViewController'
I use this class in 113 places, so I get 113 errors.
What is the best way to fix this critical issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我正在处理和你完全相同的问题。
不幸的是,如果你想让它工作得很好,就没有办法对你的 moviePlayer 相关的 ViewController 进行“双重编码”。
因此,在 3.0 的实现中,您必须使用 MPMoviePlayerController(与较新的 MPMoviePlayerViewController 实现相比,它有一定的限制)。
I was dealing with exactly the same problem as you.
Unfortunately, if you want it work well there's no way around "double-coding" your moviePlayer related ViewControllers.
So within your implementation for 3.0 you will have to use MPMoviePlayerController (which has certain limitations, compared to the newer MPMoviePlayerViewController implementation).