I don't know how to make the title specific, I'll explain what I need here.
My question:
This is for a weather app, where I allow the user to change the city they want to check the weather for. The problem is that I created the view controllers programmatically. Meaning the prepareForSegue override function doesn't apply.
Now I did find the answer for what to do instead of the prepareForSegue (bellow is the code), however, where should I be calling the function since it is not an override.
Code:
func prepareForSegue() {
let changeCityVC = ChangeCityViewController()
changeCityVC.delegate = self
present(changeCityVC, animated: true, completion: nil)
}
Thanks,