I wanted to use the library AMSlideMenu to have a navigation drawer. I saw the YT Tutorial to make my own navigation drawer with it.
The problem, it's, I wanted to use ONLY the left menu, and so i've this error, because it doesn't found the rightMenu...
How can I solve it ?
thx,
I had same problem. If AMSlideMenu catch an exception when trying to create LeftMenu then try to create RightMenu (i don't understand why, but is true). In my case the left menu "firstSegue" point to a 'wrong view', because it is a simple view controller not a navigation controller. I change the view controller to a navigation controller(that point to my original view controller), fixed it. sry for my english...
I just fixed it on my project. I hope the solution would be valid for you guys:
Just add a new
.pch
file, then go to theBuild Settings
tab, search for "prefix header" and set path to that.On your PCH file add this
#define AMSlideMenuWithoutStoryboards
I hope it can work without problem.
AMSlideMenu creator suggest to add:
on project's pch.
I've tried this solution and definitely does not work.
As explained in this post, if you install AMSlideMenu with cocoapod, you have to define
AMSlideMenuWithoutStoryboards
in .pch file of pod project.This is a workaround is evil: each time you'll run
pod update
you shall remember to manually add that line on AMSlideMenu .pch file.My solution is add run script on project build phases that, in my case, is:
Where amSlideMenuConfig contains old definitions:
This script is executed each time you build project: in order to improve optimize the process, you can add any check you need inside script.
I fixed this by double checking that my Segue Class was set correctly. Click the segue link between your table view and your segue views and ensure you have set the classes to 'AMSlideMenuContentSegue' and the correct identifiers ('firstSegue', 'secondSegue'):
Prior to this link, the MainVC (or equivalent) view segue to the table view of links for the menu should have it's class set to 'AMSlideMenuLeftMenuSegue' and it's identifier set to 'leftMenu;
Additionally, if the above all checks out in your code, then this resolved issue might have the solution you're after: https://github.com/SocialObjects-Software/AMSlideMenu/issues/21
Copy the AMSlideMenuWithoutStoryboard-Prefix.pch file settings to the PCH file from your project.