reason: 'Unable to create description in descriptionForLayoutAttribute

it2022-05-09  20

问题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  的就要遭殃了。

解决方法:

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

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

转载于:https://www.cnblogs.com/KingQiangzi/p/5316209.html

相关资源:数据结构—成绩单生成器

最新回复(0)