iphone - 这是UIKit错误吗?

标签 iphone uikit keyboard crash

我不确定这个错误是真的来自我的应用程序还是UIKit的错误。也许有人可以澄清这一点。

有一个tableview。每个单元格都向类似于“设置”的屏幕提供显示按钮,该屏幕是模式 View 。可以通过“关闭”按钮关闭模式 View 。

模态 View 包含一个UITextView。

现在出现错误:
用户按住提供相似字符的键(例如:a->äáà...)。当用户按住该键时,将提供字符,并且第一个字符将被选择为蓝色。如果用户按住此按钮并同时单击“关闭”按钮。模态 View 消失,并显示表格 View 。键盘消失,但{aáà}菜单仍然可见约一秒钟。然后应用崩溃。

由于不能同时按下两个按钮,因此只能在设备上复制。

这是堆栈跟踪

Date/Time: 2009-12-01 17:39:31.048 +0100
OS Version: iPhone OS 3.0.1 (7A400)
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000008
Crashed Thread: 0

Thread 0 Crashed:
0 libobjc.A.dylib 0x300102ac objc_msgSend + 16
1 UIKit 0x308ffda0 -[UIKeyboardImpl hasMarkedText] + 20
2 UIKit 0x309161b2 -[UIKeyboardImpl updateShiftState] + 230
3 UIKit 0x309224c0 -[UIKeyboardImpl handleObserverCallback] + 72
4 UIKit 0x30922466 observerCallback + 14
5 CoreFoundation 0x3020bf38 __CFRunLoopDoObservers + 420
6 CoreFoundation 0x30252e46 CFRunLoopRunSpecific + 1734
7 CoreFoundation 0x3025276a CFRunLoopRunInMode + 42
8 GraphicsServices 0x32044b08 GSEventRunModal + 108
9 GraphicsServices 0x32044bb4 GSEventRun + 56
10 UIKit 0x308f035c -[UIApplication _run] + 384
11 UIKit 0x308ef11a UIApplicationMain + 694
12 **** 0x00002360 main (main.m:14)
13 **** 0x000022fc start + 44

Thread 1:
0 libSystem.B.dylib 0x31d47624 semaphore_wait_signal_trap + 8
1 libSystem.B.dylib 0x31d702de semaphore_wait_signal + 2
2 libSystem.B.dylib 0x31d49c9c pthread_mutex_lock + 284
3 WebCore 0x35866fa6 __ZL17_WebTryThreadLockb + 98
4 WebCore 0x35866f22 __ZL14WebRunLoopLockP19__CFRunLoopObservermPv + 14
5 CoreFoundation 0x3020bf38 __CFRunLoopDoObservers + 420
6 CoreFoundation 0x30252db0 CFRunLoopRunSpecific + 1584
7 CoreFoundation 0x3025276a CFRunLoopRunInMode + 42
8 WebCore 0x35866ed2 __ZL12RunWebThreadPv + 286
9 libSystem.B.dylib 0x31d6a6ea _pthread_body + 10

最佳答案

解决该问题的方法是辞去第一响应者的职务,我忘记了。

关于iphone - 这是UIKit错误吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1827691/

相关文章:

iphone - 2D 平台游戏的最佳 iPhone 框架

ios - UITableView 是否适合构建像 Facebook 应用程序这样的 UI?

ios - 如何转换WithView并使原始 View 在层次结构中更高

java - 注释或关键字告诉对象的垃圾收集器首先删除

ios - 在滚动条上隐藏 UINavigationBar

iphone - 如何在 objective-c 中获取该月的第 n 个星期日日期?

c++ - 如何在不破坏死键支持的情况下使用 ToUnicode?

apache-flex - 用于浏览器的 Adob​​e Flash/Flex 中的键盘代码映射

iphone - 使用光传感器

iphone - 如何将裸 CALayer 作为 "subview"添加到 UIView?