Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone UITextField(有时)在键入时使应用程序崩溃_Iphone_Objective C_Ios_Uitextfield - Fatal编程技术网

Iphone UITextField(有时)在键入时使应用程序崩溃

Iphone UITextField(有时)在键入时使应用程序崩溃,iphone,objective-c,ios,uitextfield,Iphone,Objective C,Ios,Uitextfield,我在UITextField上遇到了一个问题。当我在UITextField中键入时,它会使应用程序崩溃(有时,并非始终如此)。我怀疑这可能是内存问题,因为只有当我连续使用应用程序15分钟时才会发生这种情况。我希望我正确地进行了内存管理。应用程序崩溃,尤其是当我在文本字段中键入内容时,而不是在应用程序中执行其他操作时。我不确定是什么导致了这个问题 我在谷歌上搜索并找到了一些与UITextField相关的崩溃的讨论,但它们对我的问题没有帮助 这是我的事故记录 0 libobjc.A.dylib

我在UITextField上遇到了一个问题。当我在UITextField中键入时,它会使应用程序崩溃(有时,并非始终如此)。我怀疑这可能是内存问题,因为只有当我连续使用应用程序15分钟时才会发生这种情况。我希望我正确地进行了内存管理。应用程序崩溃,尤其是当我在文本字段中键入内容时,而不是在应用程序中执行其他操作时。我不确定是什么导致了这个问题

我在谷歌上搜索并找到了一些与UITextField相关的崩溃的讨论,但它们对我的问题没有帮助

这是我的事故记录

0   libobjc.A.dylib                 0x3260a5b0 objc_msgSend + 16
1   CoreFoundation                  0x32d8e034 _CFXNotificationPost + 1424
2   Foundation                      0x37d93d8c -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
3   Foundation                      0x37d9784e -[NSNotificationCenter postNotificationName:object:] + 26
4   UIKit                           0x35a9d268 -[UITextField fieldEditorDidChange:] + 284
5   UIKit                           0x35a9cac0 -[UIFieldEditor webViewDidChange:] + 76
6   CoreFoundation                  0x32d8e034 _CFXNotificationPost + 1424
7   Foundation                      0x37d93d8c -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
8   WebCore                         0x33bee1e0 WebThreadPostNotification + 64
9   WebCore                         0x33dc0d66 WebCore::Editor::appliedEditing(WTF::PassRefPtr<WebCore::CompositeEditCommand>) + 234
10  WebCore                         0x33dc2efe WebCore::TypingCommand::insertTextRunWithoutNewlines(WTF::String const&, bool) + 130
11  WebCore                         0x33dc2e18 WebCore::TypingCommandLineOperation::operator()(unsigned long, unsigned long, bool) const + 44
12  WebCore                         0x33dc2cfa WebCore::TypingCommand::doApply() + 150
13  WebCore                         0x33db84da WebCore::CompositeEditCommand::apply() + 118
14  WebCore                         0x33dc2c38 WebCore::TextInsertionBaseCommand::applyTextInsertionCommand(WebCore::Frame*, WTF::PassRefPtr<WebCore::TextInsertionBaseCommand>, WebCore::VisibleSelection const&, WebCore::VisibleSelection const&) + 124
15  WebCore                         0x33dc294a WebCore::TypingCommand::insertText(WebCore::Document*, WTF::String const&, WebCore::VisibleSelection const&, unsigned int, WebCore::TypingCommand::TextCompositionType) + 438
16  WebCore                         0x33dc23da WebCore::Editor::insertTextWithoutSendingTextEvent(WTF::String const&, bool, WebCore::TextEvent*) + 382
17  WebCore                         0x33dc2232 WebCore::Editor::handleTextEvent(WebCore::TextEvent*) + 274
18  WebCore                         0x33dc2110 WebCore::EventHandler::defaultTextInputEventHandler(WebCore::TextEvent*) + 12
19  WebCore                         0x33b8b7b8 WebCore::Node::defaultEventHandler(WebCore::Event*) + 244
20  WebCore                         0x33b8b132 WebCore::EventDispatcher::dispatchEvent(WTF::PassRefPtr<WebCore::Event>) + 894
21  WebCore                         0x33b8ad8a WebCore::EventDispatchMediator::dispatchEvent(WebCore::EventDispatcher*) const + 26
22  WebCore                         0x33b8ad4e WebCore::EventDispatcher::dispatchEvent(WebCore::Node*, WTF::PassRefPtr<WebCore::EventDispatchMediator>) + 94
23  WebCore                         0x33b8ac7e WebCore::Node::dispatchEvent(WTF::PassRefPtr<WebCore::Event>) + 30
24  WebCore                         0x33d42d14 WebCore::EventTarget::dispatchEvent(WTF::PassRefPtr<WebCore::Event>, int&) + 68
25  WebCore                         0x33dc1f26 WebCore::EventHandler::handleTextInputEvent(WTF::String const&, WebCore::Event*, WebCore::TextEventInputType) + 198
26  WebCore                         0x33dc1e58 WebCore::Editor::insertText(WTF::String const&, WebCore::Event*) + 12
27  WebKit                          0x3526a684 -[WebHTMLView(WebNSTextInputSupport) insertText:] + 304
28  WebCore                         0x33db7206 -[WAKResponder tryToPerform:with:] + 58
29  WebKit                          0x352905ea -[WebView(WebViewEditingActions) _performResponderOperation:with:] + 98
30  UIKit                           0x35ad803c -[UIWebDocumentView insertText:] + 40
31  UIKit                           0x35ad7ff4 -[UIKeyboardImpl insertText:] + 76
32  UIKit                           0x35aa514c -[UIKeyboardImpl addInputString:fromVariantKey:] + 2816
33  UIKit                           0x35aa3044 -[UIKeyboardImpl handleKeyEvent:] + 1636
34  UIKit                           0x35aa28b2 -[UIKeyboardLayoutStar sendStringAction:forKey:isPopupVariant:] + 482
35  UIKit                           0x35aa13a8 -[UIKeyboardLayoutStar touchUp:] + 3096
36  UIKit                           0x35aa0732 -[UIKeyboardLayout touchesEnded:withEvent:] + 382
37  UIKit                           0x359885f4 -[UIWindow _sendTouchesForEvent:] + 520
38  UIKit                           0x35975804 -[UIApplication sendEvent:] + 376
39  UIKit                           0x3597511e _UIApplicationHandleEvent + 6150
40  GraphicsServices                0x33aed5a0 _PurpleEventCallback + 588
41  CoreFoundation                  0x32e12680 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
42  CoreFoundation                  0x32e11ee4 __CFRunLoopDoSources0 + 208
43  CoreFoundation                  0x32e10cb2 __CFRunLoopRun + 642
44  CoreFoundation                  0x32d83eb8 CFRunLoopRunSpecific + 352
45  CoreFoundation                  0x32d83d44 CFRunLoopRunInMode + 100
46  GraphicsServices                0x33aec2e6 GSEventRunModal + 70
47  UIKit                           0x359c92fc UIApplicationMain + 1116
48  MyApp                           0x00087578 0x1000 + 550264
49  MyApp                           0x000030f4 0x1000 + 8436
0 libobjc.A.dylib 0x3260a5b0 objc\u msgSend+16
1芯基础0x32d8e034 _CFXNotificationPost+1424
2基金会0x37 D93D8C - [ NSnNoTrimeCistPosialPosiTimeTrimeNo:对象:用户信息:] + 68
3基金会0x37 D984E - [ NSnPosiCICTeCsPoestPosiTrimeTrimeNo:对象:] + 26
4 UIKit 0x35a9d268-[UITextField FieldEditordChange:+284
5 UIKit 0x35a9cac0-[UIFieldEditor webViewDidChange:+76
6芯基础0x32d8e034 _CFXNotificationPost+1424
7基金会0x37 D93D8C - [ NSnNoTrimeCistPosialPosiTimeTrimeNo:对象:用户信息:] + 68
8 WebCore 0x33Bee10 WebThreadPostNotification+64
9 WebCore 0x33dc0d66 WebCore::Editor::appliedEditing(WTF::PassRefPtr)+234
10 WebCore 0x33dc2efe WebCore::TypingCommand::insertTextRunWithoutNewlines(WTF::String const&,bool)+130
11 WebCore 0x33dc2e18 WebCore::TypingCommandLineOperation::operator()(无符号长,无符号长,布尔)常量+44
12 WebCore 0x33dc2cfa WebCore::TypingCommand::doApply()+150
13 WebCore 0x33db84da WebCore::CompositeEditCommand::apply()+118
14 WebCore 0x33dc2c38 WebCore::TextInsertionBaseCommand::applyTextInsertionCommand(WebCore::Frame*,WTF::PassRefPtr,WebCore::VisibleSelection常量&,WebCore::VisibleSelection常量&+124
15 WebCore 0x33dc294a WebCore::TypingCommand::insertText(WebCore::Document*,WTF::String常量&,WebCore::VisibleSelection常量&,unsigned int,WebCore::TypingCommand::TextCompositionType)+438
16 WebCore 0x33dc23da WebCore::Editor::insertTextWithoutSendingTextEvent(WTF::String const&,bool,WebCore::TextEvent*)+382
17 WebCore 0x33dc2232 WebCore::Editor::handleTextEvent(WebCore::TextEvent*)+274
18 WebCore 0x33dc2110 WebCore::EventHandler::defaultTextInputEventHandler(WebCore::TextEvent*)+12
19 WebCore 0x33b8b7b8 WebCore::Node::defaultEventHandler(WebCore::Event*)+244
20 WebCore 0x33b8b132 WebCore::EventDispatcher::dispatchEvent(WTF::PassRefPtr)+894
21 WebCore 0x33b8ad8a WebCore::EventDispatchMediator::dispatchEvent(WebCore::EventDispatcher*)常量+26
22 WebCore 0x33b8ad4e WebCore::EventDispatcher::dispatchEvent(WebCore::Node*,WTF::PassRefPtr)+94
23 WebCore 0x33b8ac7e WebCore::Node::dispatchEvent(WTF::PassRefPtr)+30
24 WebCore 0x33d42d14 WebCore::EventTarget::dispatchEvent(WTF::PassRefPtr,int&)+68
25 WebCore 0x33dc1f26 WebCore::EventHandler::handleTextInputEvent(WTF::String const&,WebCore::Event*,WebCore::TextEventInputType)+198
26 WebCore 0x33dc1e58 WebCore::Editor::insertText(WTF::String const&,WebCore::Event*)+12
27 WebKit 0x3526a684-[WebHTMLView(WebNstPutSupport)insertText:][304
28网络存储区0x33db7206-[WAKResponder tryToPerform:with:::]+58
29 WebKit 0x352905ea-[WebView(WebViewEditingActions)\执行响应:带:::+98
30 UIKit 0x35ad803c-[UIWebDocumentView insertText:+40
31 UIKit 0x35ad7ff4-[UIKeyboardImpl insertText:+76
32 UIKit 0x35aa514c-[UIKeyboardImpl addInputString:fromVariantKey:+2816
33 UIKit 0x35aa3044-[UIKeyboardImpl handleKeyEvent:+1636
34 UIKit 0x35aa28b2-[UIKeyboardLayoutStar sendStringAction:forKey:isPopupVariant:+482
35 UIKit 0x35aa13a8-[UIKeyboardLayoutStar修补:+3096
36 UIKit 0x35aa0732-[UIKeyboardLayout touchesEnded:withEvent:][382
37 UIKit 0x359885f4-[UIWindow\u sendTouchesForEvent:+520
38 UIKit 0x35975804-[UIApplication sendEvent:+376
39 UIKit 0x3597511e _UIApplicationHandleEvent+6150
40图形服务0x33aed5a0 _PurpleEventCallback+588
41 CoreFoundation 0x32e12680 \uuuu CFRUNLOOP \u正在调用\uu OUT \uu以执行\uu函数\uuuu+12
42 CoreFoundation 0x32e11ee4\uu CFRunLoopDoSources0+208
43 CoreFoundation 0x32e10cb2\uuu CFRunLoopRun+642
44 CoreFoundation 0x32d83eb8 CFRunLoopRunSpecific+352
45 CoreFoundation 0x32d83d44 CFRunLoopRunInMode+100
46图形服务0x33aec2e6 GSEventRunModal+70
47 UIKit 0x359c92fc UIApplicationMain+1116
48 MyApp 0x00087578 0x1000+550264
49 MyApp 0x000030f4 0x1000+8436
有什么帮助吗

谢谢

编辑:我的应用程序中有几个文本字段,位于不同的视图控制器中。无论我输入哪个文本字段,应用程序都会随机崩溃。只有当我输入任何