Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logout screen #181

Open
atalayasa opened this issue Feb 9, 2018 · 5 comments
Open

Logout screen #181

atalayasa opened this issue Feb 9, 2018 · 5 comments

Comments

@atalayasa
Copy link

I have login screen and in the next page EnSwiftSide navigation controller. When I press logout from table view it needs to go back first screen I have tried unwind segue but It did not work properly. How can I go back initial view controller when I press logout? Thanks

@frestoinc
Copy link

frestoinc commented Feb 12, 2018

@atalayasa
Assuming that you using a navigation controller for your login screen u can use self.view.window?.rootViewController?.dismiss(animated:true, completion: nil) to return to rootviewcontroller

@atalayasa
Copy link
Author

@frestoinc No I am not using my navigation controller for my login screen. There is only login screen at first and then when user login to the system navigation controller is showing.

@frestoinc
Copy link

@atalayasa this is my method: i add a navigationcontroller as rootviewcontroller for the login page. This page then can be navigated to a sign up page, forgot page, t&c page. If login successful, then navigate to another navigationcontroller containing the rest of pages. when user logout with the function above it will return to the first navigationcontroller, ie rootviewcontroller and repeat

@ShaikBaji1506
Copy link

Hi, as per the demo I have made SideMenuController as Initial View Controller but the thing is I have Login SignIn SignUp but when I swipe from left to right the side menu is opening this should start when I logged In but from the scratch it is opening please help me Kindly asap how to remove gesture for this case in Login Sign up page bcz our initial view controller is SideMenuNavigationcontroller

@frestoinc
Copy link

@ShaikBaji1911 suggest you use kydrawercontroller instead of this library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants