[英]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
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; 在示例中,当前视图控制器设置为:self.window.rootViewController = self.splitViewController;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.