Ios &引用__NSCFString导航栏“:已将无法识别的选择器发送到实例
好了,各位 我有一个真正的难题要解决。我的iOS应用程序出现了一个非常奇怪的崩溃。在点击关闭UIPopoverController(在iPad上)的过程中,发生了此崩溃 这里真正奇怪的是,这是一个来自UIKit的崩溃。我已经提交了一份雷达报告,但苹果公司将其标记为关闭,当被问到时,没有提供任何进一步的信息,只是说这是另一个问题的副本(我看不到) 以前有人见过这样的东西吗 编辑1:我不知道如何使下面的代码块成为代码块,代码块标记工具没有做到这一点。如果有人能指出这一点,那就太好了:) 谢谢, ~z~阿拉什Ios &引用__NSCFString导航栏“:已将无法识别的选择器发送到实例,ios,objective-c,ipad,uikit,unrecognized-selector,Ios,Objective C,Ipad,Uikit,Unrecognized Selector,好了,各位 我有一个真正的难题要解决。我的iOS应用程序出现了一个非常奇怪的崩溃。在点击关闭UIPopoverController(在iPad上)的过程中,发生了此崩溃 这里真正奇怪的是,这是一个来自UIKit的崩溃。我已经提交了一份雷达报告,但苹果公司将其标记为关闭,当被问到时,没有提供任何进一步的信息,只是说这是另一个问题的副本(我看不到) 以前有人见过这样的东西吗 编辑1:我不知道如何使下面的代码块成为代码块,代码块标记工具没有做到这一点。如果有人能指出这一点,那就太好了:) 谢谢, ~z
感谢@Fantini重新格式化帖子!我的代码块遗漏了什么?我刚刚使用了WYSIWYG编辑器,如果您尝试编辑,您会注意到,在每一行中,您需要添加
4个空格
,并且始终在代码前保留一个新的(空白)行。
-[__NSCFString navigationBar]: unrecognized selector sent to instance 0x7be4f510
2015-06-22 11:12:57.375 SpotlightEnterprise[82694:1472906] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString navigationBar]: unrecognized selector sent to instance 0x7be4f510'
*** First throw call stack:
(
0 CoreFoundation 0x0522f746 __exceptionPreprocess + 182
1 libobjc.A.dylib 0x04e10a97 objc_exception_throw + 44
2 CoreFoundation 0x05237705 -[NSObject(NSObject) doesNotRecognizeSelector:] + 277
3 CoreFoundation 0x0517e287 ___forwarding___ + 1047
4 CoreFoundation 0x0517de4e _CF_forwarding_prep_0 + 14
5 UIKit 0x03506810 -[UINavigationItemView _updateLabelColor] + 45
6 UIKit 0x03507df3 -[UINavigationItemButtonView tintColorDidChange] + 86
7 UIKit 0x0377d28b -[_UITintColorVisitor _visitView:] + 363
8 UIKit 0x0377dab1 _UIViewVisitorEntertainVisitors + 98
9 UIKit 0x0377cb09 _UIViewVisitorRecursivelyEntertainDescendingVisitors + 166
10 UIKit 0x0377c859 +[_UIViewVisitor _startTraversalOfVisitor:withView:] + 377
11 UIKit 0x03484df1 -[UIView _receiveVisitor:] + 51
12 UIKit 0x0348a4dd -[UIView _dispatchTintColorVisitorWithReasons:] + 143
13 UIKit 0x0348a922 -[UIView setTintAdjustmentMode:] + 116
14 UIKit 0x03551433 -[UIPresentationController _enableOcclusion:] + 423
15 UIKit 0x035515d0 __55-[UIPresentationController _beginOcclusionIfNecessary:]_block_invoke + 44
16 UIKit 0x03c8208b -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 198
17 UIKit 0x03c7e9b9 -[_UIViewControllerTransitionContext __runAlongsideAnimations] + 168
18 UIKit 0x03550f49 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke392 + 67
19 UIKit 0x03481b3e -[UIViewAnimationState _runAlongsideAnimations] + 37
20 UIKit 0x03481182 -[UIViewAnimationState pop] + 36
21 UIKit 0x0347ff6e +[UIViewAnimationState popAnimationState] + 47
22 UIKit 0x0349ec6e +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 518
23 UIKit 0x0349f017 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:delay:options:animations:completion:] + 110
24 UIKit 0x03813b71 -[_UIPopoverAnimationController animateTransition:] + 384
25 UIKit 0x03550a8c __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 2315
26 UIKit 0x0358531b __40+[UIViewController _scheduleTransition:]_block_invoke + 18
27 UIKit 0x0343e862 ___afterCACommitHandler_block_invoke + 15
28 UIKit 0x0343e80d _applyBlockToCFArrayCopiedToStack + 415
29 UIKit 0x0343e622 _afterCACommitHandler + 549
30 CoreFoundation 0x0515086e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
31 CoreFoundation 0x051507b0 __CFRunLoopDoObservers + 400
32 CoreFoundation 0x051461ea __CFRunLoopRun + 1226
33 CoreFoundation 0x05145a5b CFRunLoopRunSpecific + 443
34 CoreFoundation 0x0514588b CFRunLoopRunInMode + 123
35 GraphicsServices 0x05c1a2c9 GSEventRunModal + 192
36 GraphicsServices 0x05c1a106 GSEventRun + 104
37 UIKit 0x03414106 UIApplicationMain + 1526
38 MyAppName 0x000c841d main + 77
39 libdyld.dylib 0x057d5ac9 start + 1</code>