简体   繁体   English

限制从详细视图控制器显示根视图控制器

[英]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.

相关问题 将视图控制器从根目录推送到详细信息视图控制器(SplitView) - Push a view controller from root to detail view controller (SplitView) iPad SplitViewController:从详细视图控制器重新加载根视图控制器的表视图 - iPad SplitViewController: Reloading the root view controller's tableview from the detail view controller 关闭根视图控制器而不显示嵌套/中间视图控制器 - Dismissing to root view controller without showing nested / intermediate view controller 替换明细视图控制器 - Replacing Detail View Controller 无需情节提要的表视图控制器中的Detail View Controller? - Detail View Controller from Table View Controller WITHOUT Storyboard? 将 Firebase 数据从一个视图控制器传递到详细视图控制器 - Passing Firebase Data from one view controller to detail view controller 将UItableview从普通视图控制器推到详细视图控制器 - Pushing a UItableview from a normal view controller to a detail view controller iOS + Firebase-将数据从视图控制器发送到详细信息视图控制器 - iOS + Firebase - Send data from view controller to detail view controller 如何从详细视图 controller 以编程方式推送视图 controller - How to push a view controller programmatically from Detail view controller 将数据从表视图控制器传递到详细视图控制器 - Passing data from a Table View Controller to a Detail View Controller
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM