2012-05-13 42 views

回答

2

不適用於MPMoviePlayerController。試試AV Foundation的AVPlayer。 Here's a good tutorial in the Apple docs

您將需要提供自己的自定義控件以用於AVPlayer。

或者,您可以嘗試使用帶有MPMovieControlStyleNone的controlStyle的MPMoviePlayerController。這將刪除默認控件。我的觀點是,MPMoviePlayerController的好處是它可以輕鬆工作並且只需很少的努力就可以提供控件。如果您以任何方式製作控件,我會建議使用更靈活,更強大的AV基金會。

更新2015年:如果您的目標iOS8或更高版本,您可能想嘗試AVPlayerViewController。

0

您可以通過使用代碼下面一行

[[UIBarButtonItem appearance] setTitle:@"doneButtonCaption"]; 

只需使用這行代碼,你正在寫的MPMoviePlayerController

的代碼改變 DONE按鈕的標題