You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Se usuário não está logado, vai pro PresentViewController (tela principal)
Se usuário já está logado, vai pro MapViewController (que possui botão logout)
Problemas:
Quando eu vou direto pro MapViewController, não tenho a hierarquia PresentVC -> LoginVC -> MapVC até ai tudo bem.
Quando eu inicio na PresentViewController, vou pra LoginVC e MapVC; se eu fizer Logout, instanciando PresentViewController e novamente ir Login->Map, no debugger aparece 2 instancias da PresentVC/LoginVC porque na hora do logout elas ficaram na memória.
Testei com código abaixo e outras formas no AppDelegate mas sem sucesso, sempre fica umas instancias na memória.
@chrisfsampaio
Estou tentando fazer o fluxo de login, exemplo:
Problemas:
let storyboard = UIStoryboard(name: "Main", bundle: nil) let initialViewController = storyboard.instantiateViewController(withIdentifier: "UINavigationControllerMain") present(initialViewController, animated: true, completion: nil) // UIApplication.shared().delegate?.window??.rootViewController = initialViewController
Poderia ajudar? Vou continuando outras coisas.
Thanks 👍
The text was updated successfully, but these errors were encountered: