Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/113.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 出现错误,如改用`initWithVideoIdentifier:`方法_Ios - Fatal编程技术网

Ios 出现错误,如改用`initWithVideoIdentifier:`方法

Ios 出现错误,如改用`initWithVideoIdentifier:`方法,ios,Ios,我正在使用以下代码,在ios 6中可以正常工作,但当我转到ios 8时,它将无法正常工作 XCDYouTubeVideoPlayerViewController*videoPlayerViewController=[[XCDYouTubeVideoPlayerViewController alloc]INITWITHVIDEO标识符:sc.plyUrl] [self.navigationController pushViewController:videoPlayerViewController

我正在使用以下代码,在ios 6中可以正常工作,但当我转到ios 8时,它将无法正常工作

XCDYouTubeVideoPlayerViewController*videoPlayerViewController=[[XCDYouTubeVideoPlayerViewController alloc]INITWITHVIDEO标识符:sc.plyUrl]

[self.navigationController pushViewController:videoPlayerViewController animated:YES];
xcdyoutubekit有什么问题吗?或者我的代码有什么问题。。。。
请帮助…任何人…

确保您使用的是最新版本的XCDYouTubeKit(2.0.3)和最新版本的Xcode(6.1.1)。

您是否更新了
XCDYouTubeKit
,因为他们已在最新版本中解决了此问题。是的,我正在使用的XCDYouTubeKit 2.0.3与您的问题无关,但您不应该使用
[self.navigationController按ViewController:videoPlayerViewController动画:是]
[self-presentMoviePlayerViewController动画:videoPlayerViewController]