最奇怪的错误:[UITextInputTraits长]:无法识别选择今天
2011-12-17 08:52:50.565 ShowLink[625:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITextInputTraits length]: unrecognized selector sent to instance 0x2aa240'
*** First throw call stack:
(0x37eb68bf 0x3199c1e5 0x37eb9acb 0x37eb8945 0x37e13680 0x352e4d9b 0x352aa0fd 0x352ac24d 0x352aa8e5 0x352aa259 0x352aa1b3 0x352aa12f 0x3539a623 0x352ad503 0x352acef5 0x352a76ff 0x352a7349 0x3d29 0x37e10435 0x352899eb 0x352899a7 0x35289985 0x352896f5 0x3528a02d 0x3528850f 0x35287f01 0x3526e4ed 0x3526dd2d 0x3798bdf3 0x37e8a553 0x37e8a4f5 0x37e89343 0x37e0c4dd 0x37e0c3a5 0x3798afcd 0x3529c743 0x211d 0x20dc)
terminate called throwing an exception(gdb)
标准导航控制器应用程序,我发誓,不是要求或有任何与UITextInputTraits。当我在堆栈上推新控制器时会发生这种情况。
为了测试,我打掉控制器到它的梗概,但推后仍然得到错误(推控制器的viewDidLoad和viewWillAppear中被称为,这出现在一个较低的水平是发生)
如果您启用了“在所有断点上停止”,您可能会看到发生这种情况的代码行。链接以启用:http://stackoverflow.com/questions/4961770/run-stop-on-objective-c-exception-in-xcode-4 – thomas 2011-12-17 16:01:40