I am using the MPMoviePlayerViewController, which is only supported in iOS 3.2+. How would I obtain the source code for this class and import it if the user has iOS 3.1.3 or lower?
I am using the MPMoviePlayerViewController , which is only supported in iOS 3.2+. How
Share
As Jesus says, source code for iOS is not available. That’s because it’s a commercial secret — Apple’s view is that they would put themselves at a significant commercial disadvantage if they revealed it.
Your best course of action is to check if
MPMoviePlayerViewControlleris available using normal runtime methods, and find a way to use the olderMPMoviePlayerControllerif it isn’t. You’ll get into that situation on iPhones and iPod Touches only because the original iPad shipped with iOS 3.2 from day one. The latter differs from the former in that you can’t take out the view and composite it by any other means and it doesn’t play well with tab bar controllers. So they’re always full screen. You can add extra views on top but theMPMoviePlayerControlleris always the thing in charge.