ENSwiftSideMenu icon indicating copy to clipboard operation
ENSwiftSideMenu copied to clipboard

Logout screen

Open atalayasa opened this issue 8 years ago • 5 comments

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

atalayasa avatar Feb 09 '18 07:02 atalayasa

@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

frestoinc avatar Feb 12 '18 10:02 frestoinc

@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.

atalayasa avatar Feb 19 '18 11:02 atalayasa

@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

frestoinc avatar Feb 21 '18 06:02 frestoinc

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

ShaikBaji1506 avatar Sep 18 '18 06:09 ShaikBaji1506

@ShaikBaji1911 suggest you use kydrawercontroller instead of this library

frestoinc avatar Sep 20 '18 03:09 frestoinc