How to customize MPMoviePlayerController?
I am using MPMoviePlayerController
(for an iOS 4 app) in order to play some remote mp3 files. When I add the view like that:
[moviePlayer.view setFrame:CGRectMake(10, 240, 300, 20)];
[self.view addSu开发者_如何学JAVAbview:moviePlayer.view];
I get the following:
Is it possible to customize this view? I would like to tint the color, or even add custom controls, a different progress bar etc.
See a sample of a custom view/viewController combo in Pragmatic iPad Programming. Check the source code for chapter 8 (free download from that page).
I don't think it is possible to customize the view, but whats possible for sure is that you can build your own class and use the properties, instance methods and notifications of the MPMoviePlayerController
to control it with your own created GUI.
Maybe the best idea is to extent the MPMoviePlayerController
class and override it's view property.
精彩评论