适用于旧版本 iPhone SDK 的 MPMoviePlayerViewController

发布于 2024-09-13 14:39:03 字数 262 浏览 1 评论 0原文

如果我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ㄟ。诗瑗 2024-09-20 14:39:03

我正在处理和你完全相同的问题。
不幸的是,如果你想让它工作得很好,就没有办法对你的 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文