简体   繁体   English

适用于旧版iPhone SDK的MPMoviePlayerViewController

[英]MPMoviePlayerViewController for older versions of iPhone SDK

If I use MPMoviePlayerViewController in 3.2/4.0 it builds fine. 如果我在3.2 / 4.0中使用MPMoviePlayerViewController,它可以正常运行。

If I use it in 3.1.3 and below the build fails with error 如果我在3.1.3及以下版本中使用它,构建将失败并显示错误

Expected specifier-qualifier-list before MPMoviePlayerViewController'

I use this class in 113 places, so I get 113 errors. 我在113个地方使用了此类,因此出现113个错误。

What is the best way to fix this critical issue? 解决此严重问题的最佳方法是什么?

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. 不幸的是,如果您希望它运行良好,就无法对与moviePlayer相关的ViewController进行“双重编码”。

So within your implementation for 3.0 you will have to use MPMoviePlayerController (which has certain limitations, compared to the newer MPMoviePlayerViewController implementation). 因此,在3.0的实现中,您将必须使用MPMoviePlayerController(与较新的MPMoviePlayerViewController实现相比,存在某些限制)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM