Ios 如何解决这个问题;发送到实例0x8f6f400的选择器无法识别;?

Ios 如何解决这个问题;发送到实例0x8f6f400的选择器无法识别;?,ios,objective-c,unrecognized-selector,Ios,Objective C,Unrecognized Selector,​您好,当我使用模拟器运行应用程序时,Xcode debug窗口显示如下信息: ** 2014-07-08 17:52:35.726过期[10937:60b]找不到Cbundle 0x8ce0990的可执行文件(未加载) 2014-07-08 17:52:35.764过期[10937:60b]-[\uu NSCFDictionary title]:未识别的选择器发送到实例0x955f040 2014-07-08 17:52:35.767过期[10937:60b]***由于未捕获的异常“NSInv

​您好,当我使用模拟器运行应用程序时,Xcode debug窗口显示如下信息:

**

2014-07-08 17:52:35.726过期[10937:60b]找不到Cbundle 0x8ce0990的可执行文件(未加载)
2014-07-08 17:52:35.764过期[10937:60b]-[\uu NSCFDictionary title]:未识别的选择器发送到实例0x955f040
2014-07-08 17:52:35.767过期[10937:60b]***由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:'-[\uu NSCFDictionary title]:未识别的选择器发送到实例0x955f040'
***第一次抛出调用堆栈:
(
0 CoreFoundation 0x017f41e4例外预处理+180
1 libobjc.A.dylib 0x015738e5 objc_异常_抛出+44
2 CoreFoundation 0x01891243-[NSObject(NSObject)不识别选择器:+275
3 CoreFoundation 0x017e450b\uuuuuuuuuuuuuuu+1019
4 CoreFoundation 0x017e40ee\u CF\u转发\u准备\u 0+14
5过期0x00004543-[CCViewController TaskObjectAsPropertyList:+99
6过期0x00003d1b-[CCViewController viewDidLoad]+667
7 UIKit 0x0035233d-[UIViewController loadViewIfRequired]+696
8 UIKit 0x003525d9-[UIViewController视图]+35
9 UIKit 0x0037d509-[UINavigationController旋转窗口快照视图:+52
10 UIKit 0x006c4e3c-[UIClientRotationContext initWithClient:TooOrientation:duration:andWindow:+420
11 UIKit 0x00279c22-[UIWindow\u setRotatableClient:TooOrientation:updateStatusBar:duration:force:isRotating:+1495
12 UIKit 0x00279646-[UIWindow\u setRotatableClient:TooOrientation:updateStatusBar:duration:force:+82
13 UIKit 0x00279518-[UIWindow\u setRotatableViewOrientation:updateStatusBar:duration:force:+117
14 UIKit 0x002795a0-[UIWindow\u setRotatableViewOrientation:持续时间:强制:+67
15 UIKit 0x0027863a uu 57-[UIWindow updateToInterfaceOrientation:duration:force:][uBlock_invoke+120
16 UIKit 0x0027859c-[UIWindow\u updateToInterfaceOrientation:duration:force:+400
17 UIKit 0x002792f3-[UIWindow setAutorotates:forceUpdateInterfaceOrientation:+870
18 UIKit 0x0027c8e6-[UIWindow setDelegate:+449
19 UIKit 0x00356b77-[UIViewController\u TryBecomerootViewController窗口:][180
20 UIKit 0x00272474-[UIWindow AddRootViewControllerServiceWifPossible]+591
21 UIKit 0x002725ef-[UIWindow\u setHidden:forced:][312
22 UIKit 0x0027286b-[UIWindow\u OrderFront不带制作键]+49
23 UIKit 0x0ef97587-[UIWindowAccessibility(安全类别)\u OrderFront不带MakingKey]+77
24 UIKit 0x0027d3c8-[UIWindow makeKeyAndVisible]+65
25 UIKit 0x002DBC0-[UIApplication\u CallInitializationDelegatesForRL:有效负载:挂起:][2097
26 UIKit 0x00232667-[UIApplication-runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:+824
27 UIKit 0x00246f92-[UIApplication handleEvent:withNewEvent:][3517
28 UIKit 0x00247555-[UIApplication sendEvent:+85
29 UIKit 0x00234250 _UIApplicationHandleEvent+683
30个图形服务0x037e9f02 _PurpleEventCallback+776
31图形服务0x037e9a0d PurpleEventCallback+46
32 CoreFoundation 0x0176fca5\uuuuu CFRUNLOOP\u正在调用\uu OUT\uu以执行\uu函数\uuuu+53
33 CoreFoundation 0x0176f9db\uuu CFRunLoopDoSource1+523
34 CoreFoundation 0x0179a68c\uuu CFRunLoopRun+2156
35 CoreFoundation 0x017999d3 CFRunLoopRunSpecific+467
36 CoreFoundation 0x017997eb CFRUNLOOPSRUNINMODE+123
37 UIKit 0x00231d9c-[UIU应用程序运行]+840
38 UIKit 0x00233f9b UIApplicationMain+1225
39逾期0x0000343d干管+141
40 libdyld.dylib 0x01e3b701启动+1
)
libc++abi.dylib:以NSException类型的未捕获异常终止
(lldb)
**


那么这是怎么回事?我试图去模拟器,点击重置内容和设置。。。它工作了,在我将任务添加到模拟器上的tableView之后,我再次运行应用程序,信息再次出现。它实际上让我发疯。那么解决方案是什么呢?期待您的早日答复。THX.

2014-07-08 17:52:35.764过期[10937:60b]-[\uu NSCFDictionary title]:未识别的选择器发送到实例0x955f040


这意味着您试图在NSDictionary类型的对象上调用名为title的方法或属性,您认为它是您创建的某个自定义类型,例如Book。因此,如果您在本地存储数据或从web服务获取数据并解析PLIST或JSON文件,则可能需要检查解析器,他们可能返回NSDictionary对象,而不是Book或任何您创建的类

您正在调用
NSDictionary
类上的方法
title
。由于您没有发布代码,我想当您返回类的自定义类型时,应该返回字典

[myCustomClassObj title]; // myCustomClassObj is referring to a Dictionary instead of your CustomClass

要找出崩溃发生的位置,请添加异常断点。它将在导致你的应用程序崩溃的那一行停止。

你在一个不支持该方法的类上调用了一个方法(即
[someDictionary title]
)。@特洛伊木马谢谢!发现您的评论存在问题!愚蠢的错误!可能您没有像
title
这样的属性/方法。问题显然是CCViewController中的第99行。为什么你的问题中至少没有包括这一行???你为什么不用谷歌搜索“无法识别的选择器”?
[myCustomClassObj title]; // myCustomClassObj is referring to a Dictionary instead of your CustomClass