SWRevealController包括“登录"页面-Swift [英] SWRevealController include Log in page - Swift

查看:78
本文介绍了SWRevealController包括“登录"页面-Swift的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法迅速找到适合此问题的解决方案.我已经通过 Appcoda 实现了SWRevealController滑出菜单,其中初始视图控制器必须成为一个空的视图控制器.我试图包含一个登录页面,但是如果我将其设置为初始视图控制器,则滑出菜单将不再起作用.

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

连接: 1.从SWRevealController(新情节提要)中单击控制,然后在菜单中选择显示视图控制器设置控制器".

Connections: 1.Control click from SWRevealController(New storyboard) to Menu select "reveal view controller set controller".

2.1.Control从SWRevealController(新故事板)单击到默认视图控制器(初始视图控制器),选择显示视图" 控制器设置控制器".

2.1.Control click from SWRevealController(New storyboard) to Default view controller(initial view controller) select "reveal view controller set controller".

这篇关于SWRevealController包括“登录"页面-Swift的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆