This commit is contained in:
Andrey Blinov
2020-02-11 17:06:11 +07:00
parent f5f6d57c0b
commit be08fe209d
11 changed files with 498 additions and 29 deletions

View File

@@ -15,8 +15,10 @@ class ViewController: UIViewController {
// Do any additional setup after loading the view, typically from a nib.
}
@IBAction func openChat(_ sender: Any) {
let chatController = storyboard?.instantiateViewController(withIdentifier: "DemoChatController") as! DemoController
navigationController?.pushViewController(chatController, animated: true)
// let chatController = storyboard?.instantiateViewController(withIdentifier: "DemoChatController") as! DemoController
let chatController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "DemoChatController") as! DemoController
// navigationController?.pushViewController(chatController, animated: true)
navigationController?.present(chatController, animated: true, completion: nil)
}
override func didReceiveMemoryWarning() {