Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

application logout functionality in iOS 9 using objective C

I'm designing an app with logout functionality where the logout button is embedded in UITableViewCell and this logout button is presented as a popover using UIPopOverPresentationControllerDelegate. Its like a 3tier hierarchy first login screen (rootVIewController) will be shown then it will be navigated to UITabBarController using navigation controller with three tabs like this (navigationController->rootVIewController->navigationController->TabBarController). This tab bar controller consists of logout button which is represented as UIBarButtonItem. Entire navigation is done using storyboards. My question is how to get back to login screen (rootViewController) on clicking this logout button (presented as popover). Any help is much appreciated and sorry for my english. could have provided the screen shot of my storyboard for clear understanding but there isn't any option here