开发者

MPMoviePlayerViewController for older versions of iPhone SDK

开发者 https://www.devze.com 2023-01-10 18:25 出处:网络
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

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 issu开发者_如何学Ce?


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消