SWRevealController include Log in page - Swift

2019-09-01 16:44发布

问题:

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:

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

SWRevealController

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