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.提供這個錯誤的一種可能是非常規(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之后就沒有問題了。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容