Okay so here is the problem I'm running into:
I am attempting to switch from one viewController
that I named MenuViewController
which contains my menu (obviously). I have a separate viewController
named ViewController
that contains my mapView
. I would like to be able to double finger swipe left
from my MenuViewController
over to my mapView
.
I'm not exactly sure where to start.
Also, I am using xib files, and not the storyboard. Running iOS 6.
once go through this,
now define swipe methods like below:
Hope it helps you...
Try this...
in .h file
in .m file
This is what I coded for you.
What you only need to have is,
currentViewController
must havenavigationController
for appropriate push (slide in) navigation.This sounds like a perfect time to use UIGestureRecognizer or, more specifically, UISwipeGestureRecognizer
First of all, you cannot use the built in navigation mechanism.
You will need to add the view of the 'ViewController' to the view of 'MenuViewController' and I recommend you add 'ViewController' as a child view controller to the 'MenuViewController'.
After that, set the frame of 'ViewController' out side of the screen, and when you swipe or do your gesture, just animate it back to the screen.