2011-11-24 53 views

回答

3

「完成」按鈕僅在全屏模式下顯示。您可以通過觀察@"UIMoviePlayerControllerDidExitFullscreenNotification"模式檢測的全屏模式結束:

- (void)viewDidLoad 
{ 
    [[NSNotificationCenter defaultCenter] addObserver:self 
     selector:@selector(moviePlayerDidExitFullscreen:) 
     name:@"UIMoviePlayerControllerDidExitFullscreenNotification" 
     object:nil]; 
} 

- (void)viewDidUnload 
{ 
    [[NSNotificationCenter defaultCenter] removeObserver:self]; 
} 

- (void)moviePlayerDidExitFullScreen:(NSNotification *)notification 
{ 
    // This is where you do whatever you want because the user pressed "Done". 
} 

UIMoviePlayerControllerDidExitFullscreenNotification未記錄,所以我不知道這是否會通過App Store的審查。如果您不打算通過App Store進行分發,則無關緊要。

+0

謝謝你的幫助,我解決了這個問題。謝謝。 –

+1

您是否通過App Store發佈您的應用程序?它通過了嗎? – jAckOdE

相關問題