0

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?

rohaldb
  • 589
  • 7
  • 24

1 Answers1

1

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

Avijit Nagare
  • 8,482
  • 7
  • 39
  • 68
  • Thank you! I was trying things along this line but i couldnt get it working for some reason. :D – rohaldb Jan 14 '16 at 06:22
  • @rohaldb. yes buddy i was faced same issue yesterday only. thanks. :) – Avijit Nagare Jan 14 '16 at 06:23
  • I have found my issue! After logging in, if i to my main page via a navigation controller first (by setting the navigation controllers root view controller to be the home page), the button no longer works. Do you know why this is? – rohaldb Jan 14 '16 at 06:30