Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/107.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 _setViewDelegate无法识别的选择器已发送到实例_Ios_Ios6 - Fatal编程技术网

Ios _setViewDelegate无法识别的选择器已发送到实例

Ios _setViewDelegate无法识别的选择器已发送到实例,ios,ios6,Ios,Ios6,我得到一个例外: 2012-10-11 14:27:05.039日出警报[2297:907]***由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:'-[PickServiceWController\u setViewDelegate:::]:未识别的选择器发送到实例0x1e56fff0' 我在appDelegate.m文件中有此代码 PickerViewController*pvc=[[PickerViewController alloc]init

我得到一个例外:

2012-10-11 14:27:05.039日出警报[2297:907]***由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:'-[PickServiceWController\u setViewDelegate:::]:未识别的选择器发送到实例0x1e56fff0'

我在appDelegate.m文件中有此代码

PickerViewController*pvc=[[PickerViewController alloc]initWithNibName:@“PickerView”捆绑包:nil]

self.window.rootViewController=pvc

我已经将nib的类设置为自定义类,它不是UIViewController。请看下图

请让我知道你认为我做错了什么

谢谢,


Venkat Rao

您确实为UIView设置了PickerViewController类,但不正确,请返回并为文件所有者设置PickerViewController