2013-04-29 106 views
1

我目前有一個MPMoviePlayerViewController的麻煩。Modal MPMoviePlayerViewController解僱與錯誤的動畫

- (void)playVideo:(UIButton *)sender { 
    MPMoviePlayerViewController *mp = [[MPMoviePlayerViewController alloc] initWithContentURL:self.howToVideoURL]; 
    [self presentModalViewController:mp animated:YES]; 
} 

從上,玩家有模式呈現,這一點上播放視頻,一切是好的。 除了當我點擊「完成」按鈕。

而不是以通常的方式解除模式(即通過降低屏幕直到它消失,揭示前一屏幕),它看起來像在屏幕上以模態方式呈現在玩家之上。我沒有特定的代碼來解除模式,我依靠原生的「完成」按鈕。

有人曾經有過這樣的經歷嗎?我該如何解決它?

+0

http://stackoverflow.com/questions/8227801/done-button-event-mpmovieplayercontroller – 2013-04-29 14:31:41

回答

0

你試過presentMoviePlayerViewControllerAnimated

相關問題