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之后就没有问题了。

你可能感兴趣的:(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.)