Slide out navigation through swipes for UIView to overlay another UIView

admin

Administrator
Staff member
On my research regarding this navigation technique, I've found <a href="http://nickharris.wordpress.com/2012/02/05/ios-slide-out-navigation-code/" rel="nofollow noreferrer">this post by Nick Harris</a> which is a good start I suppose. However, what I want is slightly different from this. You can think of it as iOS'
Code:
Notification Center
when you just have to swipe from the top to show the
Code:
view
and just swipe back to hide it again. In my case, I wish to reveal a hidden
Code:
UIView
coming from the right side of the screen with a swipe gesture to the left and also hide it again through the same gesture (this time to the right).

I've managed to get a solution on my previous <a href="https://stackoverflow.com/questions/12000995/sliding-a-uiview-to-partially-overlay-another-uiview">post</a> regarding showing/hiding a UIView. One thing I wish to add is the swiping gesture.

I wouldn't want to tweak my app delegate to do this as Nick Harris has done. So if anyone has any ideas/code samples on how I could do this, I'd be much grateful.

Shed some light :)