reason: 'Unable to create description in descriptionForLayoutAttribute_layoutItem_coefficient. Something is nil

问题log:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unable to create description in descriptionForLayoutAttribute_layoutItem_coefficient. Something is nil'

*** First throw call stack:

 

最近开发,没有找到iOS7系统  iPhone4S以下的设备。但是我们的APP还要支持iOS7,iPhone4S,于是本主就遇到了线上BUG,大坑啊!同事里有用这设备的,却没有在测试阶段告诉小主。

 

于是开始找问题。找到了:

问题就是iOS8以下的系统,不能完美的支持autoLayout。  

 用到 add missing constraints 或者 Reset to suggested constraints  的就要遭殃了。

解决方法:

   可以重新编辑  手动添加约束。

其他方法 待定,有好方法可以留言,交流学习!

posted @ 2016-03-24 16:52  Qiang zi  阅读(147)  评论(0编辑  收藏  举报