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).
精彩评论