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 –