简体   繁体   中英

MPMoviePlayerViewController for older versions of iPhone SDK

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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