iOS 输入框频繁切换后,系统打印信息问题

最近在做ipad的登录注册,测试的时候就点击输入框,结果发现有系统的打印信息,但系统无崩溃。
系统打印信息如下:

2017-05-27 11:39:08.636670+0800 GoGoTalkHD[6324:969512] [LayoutConstraints] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
<__NSArrayI 0x60800044e550>(
<NSLayoutConstraint:0x610000092d90 _UIButtonBarStackView:0x7fe40af2c730.width <= 0>,
<NSLayoutConstraint:0x610000092020 UILayoutGuide:0x610000199980.left == _UIButtonBarStackView:0x7fe40af2c730.left + 15>,
<NSLayoutConstraint:0x6100000920c0 _UIButtonBarStackView:0x7fe40af2c730.right == UILayoutGuide:0x610000199980.right + 15>
)


Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x6100000920c0 _UIButtonBarStackView:0x7fe40af2c730.right == UILayoutGuide:0x610000199980.right + 15>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2017-05-27 11:39:08.638155+0800 GoGoTalkHD[6324:969512] [LayoutConstraints] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
<__NSArrayI 0x61800005d640>(
<NSLayoutConstraint:0x610000092de0 _UIButtonBarStackView:0x7fe40af3b480.width <= 0>,
<NSLayoutConstraint:0x610000092660 UILayoutGuide:0x61000019a000.left == _UIButtonBarStackView:0x7fe40af3b480.left + 15>,
<NSLayoutConstraint:0x610000092700 _UIButtonBarStackView:0x7fe40af3b480.right == UILayoutGuide:0x61000019a000.right + 15>
)


Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x610000092700 _UIButtonBarStackView:0x7fe40af3b480.right == UILayoutGuide:0x61000019a000.right + 15>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
直观显示.png

百度资料之后,以为是约束问题,查找了自己的代码之后,还是无法消除。继续查找之后发现说是键盘类型切换的问题。就注销了代码

self.phoneAccountField.keyboardType = UIKeyboardTypeNumberPad;
self.passwordField.secureTextEntry = YES;

发现问题消失。具体的未深究。估计这个是苹果的小bug吧。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 173,540评论 25 708
  • linux资料总章2.1 1.0写的不好抱歉 但是2.0已经改了很多 但是错误还是无法避免 以后资料会慢慢更新 大...
    数据革命阅读 12,239评论 2 33
  • 2017年11月1日,由亚太体智能临沂分院组织的600名幼教同盟一起上海观摩学习。 第一站来到了上海东方锦绣...
    轩外听雨阅读 148评论 0 0
  • 春暖福至,…… 今天,一位志愿者阿姨来看我,谈的投机,老人家吃过了午饭高高兴兴地告别,看着老人家和我一起在和平之爱...
    松树_0909阅读 485评论 0 0
  • 一 我的人生里,总有那么几次不按常理出牌,第二次独自一人的旅行就这样快要结束了。 厦门一直是我想要去的地方,朋友推...
    左耳不闻阅读 169评论 1 0