ios - NSInternalInconsistencyException? The layout constraints still need update after sending -


i facing problem, have forgot password option in have placed uialertview input field.

uialertview *alertview = [[uialertview alloc] initwithtitle:@"forgot password?"                                                         message:@"please enter username retrieve password"                                                        delegate:self                                               cancelbuttontitle:@"cancel"                                               otherbuttontitles:@"ok", nil];     [alertview setalertviewstyle:uialertviewstyleplaintextinput];     [alertview show]; 

when app launched, works fine, when login, kinds of stuff, sign out , press "forgot password", error , app crashes:

*** terminating app due uncaught exception 'nsinternalinconsistencyexception', reason: 'the layout constraints still need update after sending -updateconstraints <_uikeyboardlayoutalignmentview: 0x7ffef5b37b00; frame = (0 0; 0 0); userinteractionenabled = no; layer = >. _uikeyboardlayoutalignmentview or 1 of superclasses may have overridden -updateconstraints without calling super. or, may have dirtied layout constraints in middle of updating them. both programming errors.'

here's complete log:

*** first throw call stack: (     0   corefoundation                      0x000000010e850c65 __exceptionpreprocess + 165     1   libobjc.a.dylib                     0x000000010e4e9bb7 objc_exception_throw + 45     2   corefoundation                      0x000000010e850b9d +[nsexception raise:format:] + 205     3   uikit                               0x000000010f2c5427 -[uiview(additionallayoutsupport) _internalupdateconstraintsifneededaccumulatingviewsneedingsecondpassandviewsneedingbaselineupdate:] + 467     4   uikit                               0x000000010f2c553e -[uiview(additionallayoutsupport) _updateconstraintsifneededaccumulatingviewsneedingsecondpassandviewsneedingbaselineupdate:] + 124     5   corefoundation                      0x000000010e757354 cfarrayapplyfunction + 68     6   uikit                               0x000000010f2c52ed -[uiview(additionallayoutsupport) _internalupdateconstraintsifneededaccumulatingviewsneedingsecondpassandviewsneedingbaselineupdate:] + 153     7   uikit                               0x000000010f2c553e -[uiview(additionallayoutsupport) _updateconstraintsifneededaccumulatingviewsneedingsecondpassandviewsneedingbaselineupdate:] + 124     8   corefoundation                      0x000000010e757354 cfarrayapplyfunction + 68     9   uikit                               0x000000010f2c52ed -[uiview(additionallayoutsupport) _internalupdateconstraintsifneededaccumulatingviewsneedingsecondpassandviewsneedingbaselineupdate:] + 153     10  uikit                               0x000000010f2c553e -[uiview(additionallayoutsupport) _updateconstraintsifneededaccumulatingviewsneedingsecondpassandviewsneedingbaselineupdate:] + 124     11  uikit                               0x000000010f2c5a0e __60-[uiview(additionallayoutsupport) updateconstraintsifneeded]_block_invoke + 96     12  foundation                          0x000000010e0891be -[nsisengine withbehaviors:performmodifications:] + 155     13  uikit                               0x000000010f2c56d6 -[uiview(additionallayoutsupport) updateconstraintsifneeded] + 231     14  uikit                               0x000000010f2b8ebe -[uiwindow(uiconstraintbasedlayout) updateconstraintsifneeded] + 91     15  uikit                               0x000000010f2c5dde -[uiview(additionallayoutsupport) _updateconstraintsatenginelevelifneeded] + 146     16  uikit                               0x000000010ecbd56a -[uiview(hierarchy) layoutbelowifneeded] + 340     17  uikit                               0x000000010f05245e -[_uialertcontrolleranimatedtransitioning animatetransition:] + 672     18  uikit                               0x000000010ed57a4e __56-[uipresentationcontroller runtransitionforcurrentstate]_block_invoke + 1867     19  uikit                               0x000000010ec6d62c _applyblocktocfarraycopiedtostack + 314     20  uikit                               0x000000010ec6d4a6 _aftercacommithandler + 533     21  corefoundation                      0x000000010e783ca7 __cfrunloop_is_calling_out_to_an_observer_callback_function__ + 23     22  corefoundation                      0x000000010e783c00 __cfrunloopdoobservers + 368     23  corefoundation                      0x000000010e779a33 __cfrunlooprun + 1123     24  corefoundation                      0x000000010e779366 cfrunlooprunspecific + 470     25  graphicsservices                    0x00000001126c9a3e gseventrunmodal + 161     26  uikit                               0x000000010ec49900 uiapplicationmain + 1282     27  univet                              0x000000010d83150f main + 111     28  libdyld.dylib                       0x000000011017a145 start + 1     29  ???                                 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating uncaught exception of type nsexception 

i using iqkeyboardmanager navigation between text fields.

please guide, guidance appreciated.

thank in advance.

after simple google search found the answer problem.

on ios 8.3 if keyboard being displayed , try display uialertview or uialertcontroller has input field crash.


Comments