简体   繁体   English

SWRevealController包括“登录”页面-Swift

[英]SWRevealController include Log in page - Swift

I am unable to find a suitable solution to this issue in swift. 我无法迅速找到合适的解决方案。 I have implemented a SWRevealController slide out menu via Appcoda , in which the initial view controller must be an empty view controller. 我已经通过Appcoda实现了SWRevealController滑出菜单,其中初始视图控制器必须为空视图控制器。 I am attempting to include a log in page, however if i make this the initial view controller, the slide out menu no longer works. 我试图包括一个登录页面,但是如果我将其设为初始视图控制器,则滑出菜单将不再起作用。

How do i implement the log in page whilst maintaining the functionality of the slide out menu? 如何在保持滑出菜单功能的同时实现登录页面?

Drag and drop empty view controller in storyboard and set its class to 将空视图控制器拖放到情节提要中,并将其类设置为

SWRevealController SWRevealController

在此处输入图片说明

Connections: 1.Control click from SWRevealController(New storyboard) to Menu select "reveal view controller set controller". 连接:1.Control从SWRevealController(新情节提要)单击到菜单,选择“ reveal view controller set controller”。

2.1.Control click from SWRevealController(New storyboard) to Default view controller(initial view controller) select "reveal view controller set controller". 2.1。从SWRevealController(新故事板)单击控制,然后单击Default view controller(初始视图控制器),选择“ reveal view controller set controller”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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