This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.

1.提供这个错误的一种可能是非常规情况。

最近在做支付方面的东西,但是其中一种微信支付集成后一直提示这个错误,打断点会断在

1

MBProgressHUD.h这个库的.m第一段话,一脸蒙蔽。

原因:由于这种微信支付需要支付前获取当前的controller,作为跳转。

这就是关键了,在测试的时候,viewcotroller并没有navigationController,所以会一直报错,就是那句 This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes.  This will cause an exception in a future release.

给当前controller加上navigationController之后就没有问题了。

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

推荐阅读更多精彩内容