UITextField auto correction crash in iOS 4.3 on simulator(模拟器上 iOS 4.3 中的 UITextField 自动更正崩溃)
问题描述
UITextField 的自动更正使我的应用程序在具有 iOS 4.3 sdk 构建目标的模拟器上崩溃.在设备上和带有 iOS 4.2 sdk 的模拟器上运行良好.
The UITextField's auto correction crashes my app on the simulator with iOS 4.3 sdk build target. Works fine on the device and in the simulator with iOS 4.2 sdk.
还有其他人遇到这个问题吗?我认为它是 4.3 sdk 的错误?
Anyone else experiencing this issue? I'm figuring its a bug with the 4.3 sdk?
只要我输入第二个字符.堆栈跟踪
As soon as I type the second character. Stack Trace
#0 0x01c01000 in objc_assign_ivar ()
#1 0x03b7ec34 in -[AppleSpell init] ()
#2 0x007e7538 in -[UITextChecker _checker] ()
#3 0x007e8de9 in -[UITextChecker checkSpellingOfString:startingAt:language:wrap:correction:] ()
#4 0x0b335725 in TIInputManagerZephyr::lookup_spellcheck_candidates(KB::String const&) ()
#5 0x0b3353f3 in TIInputManagerZephyr::lookup_static_dynamic_candidates(KB::String const&, KB::String const&, KB::Vector<KB::FPoint> const&, bool) ()
#6 0x0b332b2b in TIInputManager::lookup() ()
#7 0x0b332e18 in TIInputManager::autocorrection() ()
#8 0x0b34a06b in -[TIKeyboardInputManagerZephyr autocorrection] ()
#9 0x005cfbe8 in -[UIKeyboardImpl generateCandidatesWithCompletions:] ()
#10 0x005cfc3b in -[UIKeyboardImpl generateCandidates] ()
#11 0x005dca23 in -[UIKeyboardImpl addInputString:fromVariantKey:] ()
#12 0x005de71b in -[UIKeyboardImpl handleKeyEvent:] ()
#13 0x0070a2ee in -[UIKeyboardLayoutStar sendStringAction:forKey:] ()
#14 0x0070ed19 in -[UIKeyboardLayoutStar touchUp:] ()
#15 0x005ebda2 in -[UIKeyboardLayout touchesEnded:withEvent:] ()
#16 0x004b8ded in -[UIWindow _sendTouchesForEvent:] ()
#17 0x00499c37 in -[UIApplication sendEvent:] ()
#18 0x0049ef2e in _UIApplicationHandleEvent ()
#19 0x02011992 in PurpleEventCallback ()
#20 0x0176a944 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ ()
#21 0x016cacf7 in __CFRunLoopDoSource1 ()
#22 0x016c7f83 in __CFRunLoopRun ()
#23 0x016c7840 in CFRunLoopRunSpecific ()
#24 0x016c7761 in CFRunLoopRunInMode ()
#25 0x020101c4 in GSEventRunModal ()
#26 0x02010289 in GSEventRun ()
#27 0x004a2c93 in UIApplicationMain ()
有时,您会看到一个简单得多的跟踪,它只是从 main 开始,然后在 objc_assign_ivar
上立即停止.在输入文本字段(例如 UISearchBar)时也会发生这种情况.
Also at times, you will see a much simpler trace that simply starts at main, then ceases immediately on objc_assign_ivar
. This happens also when typing in a text field, such as a UISearchBar.
推荐答案
在模拟器上,打开设置->键盘,关闭所有选项.这可以防止崩溃(直到错误得到解决).
On the simulator, open Settings -> Keyboard and turn OFF all the options. This prevents the crash (until the bug is addressed).
这篇关于模拟器上 iOS 4.3 中的 UITextField 自动更正崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:模拟器上 iOS 4.3 中的 UITextField 自动更正崩溃
基础教程推荐
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01