Created
October 16, 2017 13:21
-
-
Save titoaesj/1ce53dc334f4fdca8665b6c2a1eeb82e to your computer and use it in GitHub Desktop.
Sempre que a segue de destino for uma UINavigationController usar o seguinte trecho de código.
This file contains hidden or 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?) { | |
if segue.identifier == "meu_identificador" { | |
if let destinationNavigationController = segue.destination as? UINavigationController, | |
let targetController = destinationNavigationController.topViewController as? meu_controller { | |
... | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment