Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/23.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 NSInvalidArgumentException原因:ViewController YouTube服务_Ios_Objective C_Youtube_Gdata_Unrecognized Selector - Fatal编程技术网

Ios NSInvalidArgumentException原因:ViewController YouTube服务

Ios NSInvalidArgumentException原因:ViewController YouTube服务,ios,objective-c,youtube,gdata,unrecognized-selector,Ios,Objective C,Youtube,Gdata,Unrecognized Selector,我正在Xcode 5上添加GData Youtube Api,并获得错误: “NSInvalidArgumentException”,原因:“-[ViewController youTubeService]:发送到实例0x8cc31c0的选择器无法识别” 我正在使用调试,我知道在运行此行后会显示此错误: GdatServiceGoogleYouTube*服务=[self-YouTube服务] 请帮我修一下。非常感谢 您得到错误是因为您的ViewController类没有名为youTubeServ

我正在Xcode 5上添加GData Youtube Api,并获得错误:

“NSInvalidArgumentException”,原因:“-[ViewController youTubeService]:发送到实例0x8cc31c0的选择器无法识别”

我正在使用调试,我知道在运行此行后会显示此错误:

GdatServiceGoogleYouTube*服务=[self-YouTube服务]


请帮我修一下。非常感谢

您得到错误是因为您的
ViewController
类没有名为
youTubeService
的方法。非常感谢@rmaddy!!!这是基本的:(