提示如下信息:
This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
解决如下 把ui相关的放在DispatchQueue.main.async代码块中执行
DispatchQueue.main.async(execute: {
let view=HomeViewController();
self.navigationController!.pushViewController(view, animated: true)
})