iOS 8.3 UIAlertController crashes when trying to add a textfield

后端 未结 12 1605
暗喜
暗喜 2020-12-30 03:44

I have an iPad app. I am creating an UIAlertController and adding a textfield. It crashes. It only crashes when I add a textfield.

let alert = UIAlertContr         


        
12条回答
  •  遥遥无期
    2020-12-30 04:18

    I had a similair problem that is also mentioned in the comments. Please see this if you are getting.

    *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The layout constraints still need update after sending -updateConstraints to <_UIKeyboardLayoutAlignmentView: 0x792d28e0; frame = (0 0; 0 0); userInteractionEnabled = NO; layer = >. _UIKeyboardLayoutAlignmentView or one of its superclasses may have overridden -updateConstraints without calling super. Or, something may have dirtied layout constraints in the middle of updating them. Both are programming errors.'

    NSInteralInconsistencyException - UIKeyboardLayoutAlignmentView

提交回复
热议问题