【Swift】エラー対応: 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.
またもやしめ鯖さんのブログを参考にさせていただきました。
tableViewのもっと読み込むでtableView.reloadDataするときにこのエラーが出たのでその時の対処法。
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) { [weak self] () -> Void in // Time spendig task. Ex. Gettings items from server NSThread.sleepForTimeInterval(3.0) // Task finished: dispatch_async(dispatch_get_main_queue()) { [weak self] () -> Void in guard let s = self else { return } s.tableView.reloadData() } } }, fail: { })
こんな感じでdispatchで処理するとエラー消えました。