开发者

Import iOS 3.2 source code if user has iOS 3.1.3 or lower

I am using the MPMoviePlayerViewController, which is only su开发者_开发技巧pported 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?


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 MPMoviePlayerViewController is available using normal runtime methods, and find a way to use the older MPMoviePlayerController if 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 the MPMoviePlayerController is always the thing in charge.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜