John-Lluch / SWRevealViewController

A UIViewController subclass for presenting side view controllers inspired on the FaceBook and Wunderlist apps, done right !
Other
4.52k stars 987 forks source link

Need A Little Help/Advice #557

Open MikeKogan opened 8 years ago

MikeKogan commented 8 years ago

I have an existing app and wanted to use RVC to improve the Menu interface. The problem I am having is in integrating into an existing app that does not really use storyboard or segues, and the existing ViewController I want to enhance has a simple button that when touched causes a basic UIViewController with a custom UITableView inside it to come up.

I am dying on moving over and have killed hours trying to get this to work. If anyone can provide the steps it would be greatly appreciated. The VC I am enhancing is "down" the hierarchy and everything I see uses SB or hangs off Appdelegate at the top of the hierarchy...

I allocate a SWRevealVC, set the rear to a MenuVC, set the front to self which is the mainView VC, and upon allocation the screen goes black :(

Final comment - I am doing this all programmatically, without anything in storyboard, segues, etc

iDevelopper commented 8 years ago

I think you can't set frontViewController with self, it's too late. When allocating your MainViewVC set frontViewController with it