1
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
dismiss(animated: true) {
let viewController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "ChatPage")
self.present(viewController, animated: true, completion: nil)
print("111")
}
}
得到錯誤而解僱一個視圖控制器和移動到另一個視圖 - 控制由completionblock
請幫我解決這個問題,我提到的網站,但我仍卡在這裏了。MessagePeopleTableViewController:0x7fb47dd44f80>誰的觀點是不是在窗口層次
看到這個例子https://stackoverflow.com/questions/26022756/warning-attempt-to-present-on-whose-view-is-not-in-the-window-hierarchy-s –