I am a beginner and I wanted to create a side menu on the right side.
So far I have a UIButton on right top side of viewController, what I want is when I click that button I want to show/hide slide menu with say 3 items…
when I click each item it will go to the different view controller. In my project, i am showing slide menu in only one viewController using AMSlideMenu. Thanks in advance.
Anuj just follow the steps-
SideMenuViewControllerwhich is sub class ofUIViewController, using storyboard how it will look according to the requirement.SideMenuViewControllerand its view as a child view controller in parent view controller byUIButtonclick.SideMenuViewControllerfrom parent View controller and remove its view from parent view.Repeat 2 and 3 for all view controllers.
Updated code :
Declare in your view controller -
In
viewDidLoadIn your
buttonClicked event -For Animation: