“__NSCFString navigationBar”:无法识别的选择器发送到实例

时间:2015-06-22 15:27:21

标签: ios objective-c ipad uikit unrecognized-selector

好的每个人,

我有一个非常难以破解的坚果。我在iOS应用程序中遇到了一个非常奇怪的崩溃。在通过单击关闭UIPopoverController(在iPad上)关闭UIPopoverController的过程中,正在发生此崩溃。

这里真奇怪的是,这是UIKit的崩溃。我已经提交了一份非常similar issue的雷达报告,但Apple将其标记为已关闭,当被问及时,没有提供任何进一步的信息,而不是说它是另一个问题的副本(我看不到)。 / p>

以前有人见过这样的事吗?

编辑1:我无法弄清楚如何使下面的代码块,代码块标记工具没有这样做。如果有人能指出这一点,那就太棒了:)。

谢谢, 〜Arash的

-[__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>

0 个答案:

没有答案