Any of you knows how can I show the main view controller when comes back form foreground?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you’re asking is very application dependent, Juan… we don’t know what your application looks like (if it’s got a tab bar controller or if it’s a storyboard with segues or…).
But it sounds like you have a good sense of what you need to do.
You already know when an application comes back in the foreground via your UIApplicationDelegate applicationWillEnterForeground method gets called.
Then all you need to do next is segue back to your main view controller, or pop the navigation controller to get back to the root (main) view controller, or select the original tab in your tab bar controller.