0
我試圖整合一個XCDMovieplayer,就像你通常會用MPMoviePlayer一樣。問題是它一直在解僱。MoviePlayer繼續解僱
這裏是我的代碼
- (void)viewDidAppear:(BOOL)animated {
XCDYouTubeVideoPlayerViewController *videoPlayerViewController = [[XCDYouTubeVideoPlayerViewController alloc] initWithVideoIdentifier:@"9bZkp7q19f0"];
[self presentMoviePlayerViewControllerAnimated:videoPlayerViewController];
}
錯誤:
你永遠不應該從viewDidLoad方法存在任何視圖控制器Warning: Attempt to dismiss from view controller <ViewController: 0xa134b80> while a presentation or dismiss is in progress!
不改變任何東西。仍然得到錯誤。 – user3195388