1.提供這個錯誤的一種可能是非常規(guī)情況。
最近在做支付方面的東西,但是其中一種微信支付集成后一直提示這個錯誤,打斷點會斷在
1
MBProgressHUD.h這個庫的.m第一段話,一臉蒙蔽。
原因:由于這種微信支付需要支付前獲取當(dāng)前的controller,作為跳轉(zhuǎn)。
這就是關(guān)鍵了,在測試的時候,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.
給當(dāng)前controller加上navigationController之后就沒有問題了。