Created
October 20, 2018 16:47
-
-
Save alansvits/2499dcf21def6f485674f5fac5302da0 to your computer and use it in GitHub Desktop.
Example prepare:for:sender
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { | |
//TODO: - TODO | |
if segue.identifier == "ShowCityWeather" { | |
let controller = segue.destination as! CityDetailViewController | |
controller.cityName = self.selectedCity | |
controller.dataController = self.dataController | |
controller.getDetailWeather(selectedCity) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment