1
Good evening, guys. I’m trying to do some programmatically transitions of the screen with Swift, but I can’t. I tried to use navigationController, but it didn’t work, it always gives a different error. The screens are arranged in the same storeboard, I just need to move from screen 1 to screen 2. I tried to use protocols too, but I could not and I got more rolled up. Below is the code I’m trying to use to make the screen change, this snippet is in Viewcontroller:
@IBAction func btnSegue() {
let newTela = TelaDoisViewController(delegate: self)
if let navigation = navigationController {
navigation.pushViewController(newTela, animated: true)
}
}
Thanks for your help.