什么是UICalloutBarButton,为什么它会让我的应用程序崩溃? [英] What is UICalloutBarButton, and why does it make my app crash?
问题描述
我正在浏览我的iPhone应用程序的一些报告崩溃报告,我对以下内容感到难过。
I'm going through some of the reported crash reports for my iPhone app, and I'm stumped by the following.
它很可能在某处崩溃我的代码 - 它可能是一个事件处理程序在某处调用错误的选择器。问题是我不知道这个代码是什么 - 我不知道UICalloutBarButton或UICalloutBar是什么。
It's very possible it crashes somewhere in my code - it may be an event handler calling the wrong selector somewhere. The problem is I have no idea WHERE this code is - I don't know what a UICalloutBarButton or UICalloutBar is.
另外,不用说,我无法重现这是我的结论,否则很容易弄清楚它发生在哪里。
Also, needless to say, I can't reproduce this on my end, otherwise it'd be easy to figure out where it's happening.
Date/Time: 2011-03-18 14:33:13.373 +0100
OS Version: iPhone OS 4.3 (8F190)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x317aaa1c __pthread_kill + 8
1 libsystem_c.dylib 0x355593b4 pthread_kill
2 libsystem_c.dylib 0x35551bf8 abort
3 libstdc++.6.dylib 0x33378a64 __gnu_cxx::__verbose_terminate_handler() + 376
4 libobjc.A.dylib 0x364b506c _objc_terminate
5 libstdc++.6.dylib 0x33376e36 __cxxabiv1::__terminate(void (*)()) + 46
6 libstdc++.6.dylib 0x33376e8a std::terminate() + 10
7 libstdc++.6.dylib 0x33376f5a __cxa_throw + 78
8 libobjc.A.dylib 0x364b3c84 objc_exception_throw
9 CoreFoundation 0x354e21b8 -[NSObject(NSObject) doesNotRecognizeSelector:]
10 CoreFoundation 0x354e1642 ___forwarding___
11 CoreFoundation 0x35458178 _CF_forwarding_prep_0 + 40
12 CoreFoundation 0x3544befc -[NSObject(NSObject) performSelector:withObject:]
13 UIKit 0x35e259b2 -[UICalloutBar buttonPressed:]
14 CoreFoundation 0x3544befc -[NSObject(NSObject) performSelector:withObject:]
15 UIKit 0x35e25cd4 -[UICalloutBarButton sendCallback]
16 Foundation 0x31d096ce __NSFireDelayedPerform
17 CoreFoundation 0x354b5a40 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
18 CoreFoundation 0x354b7ec4 __CFRunLoopDoTimer
19 CoreFoundation 0x354b883e __CFRunLoopRun
20 CoreFoundation 0x35448ebc CFRunLoopRunSpecific
21 CoreFoundation 0x35448dc4 CFRunLoopRunInMode
22 GraphicsServices 0x328e8418 GSEventRunModal
23 GraphicsServices 0x328e84c4 GSEventRun
24 UIKit 0x35bffd62 -[UIApplication _run]
25 UIKit 0x35bfd800 UIApplicationMain
26 app name 0x000022d0 main + 36
27 app name 0x0000226c start + 44
推荐答案
UICalloutBar
是一个UIKit私有API 。
UICalloutBar
is a UIKit private API.
我认为这是文本选择中出现的上下文菜单...(复制/粘贴......)
I think this is the contextual menu that appears on text selection... (Copy/Paste...)
无论如何,这次崩溃真的很喜欢来自内部API。
Anyway, this crash really likes coming from internal APIs.
所以我猜它是:
- 一个苹果错误(检查iOS版本与崩溃事件发生)
- 或某人使用带有脏内容的越狱设备/调整内部API的混乱
我担心你找到修复的可能性非常低。我希望我错了! :)
I'm afraid that the chances you find a fix for this are very low. I hope I'm wrong! :)
这篇关于什么是UICalloutBarButton,为什么它会让我的应用程序崩溃?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!