简体   繁体   中英

restrict showing root view controller from the detail view controller

I am following this apple example. https://developer.apple.com/library/ios/samplecode/MultipleDetailViews/Introduction/Intro.html

I am creating an application in which user can perform different activities after the login. I wants to disable/restrict the root view controller(menu from left side appears with the right swipe) when the login screen appears in the detail view controller. After the user login, the left menu should appears when we swipe (which is currently implemented in this example).

Kindly help me.

Thanks.

I think it would be easier to create a login view controller and present it when the application starts and on when login succeeds, present the current split view controller.

In the example, the current view controller is set with: self.window.rootViewController = self.splitViewController;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM