SWRevealController include Log in page - Swift

2019-09-01 17:00发布

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?

1条回答
狗以群分
2楼-- · 2019-09-01 17:17

Drag and drop empty view controller in storyboard and set its class to

SWRevealController

enter image description here

Connections: 1.Control click from SWRevealController(New storyboard) to Menu select "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".

查看更多
登录 后发表回答