ipup / PPRevealSideViewController

A new container controller to easily push views on side like Path or Facebook
www.ipup.pro
Other
821 stars 194 forks source link

how can I let pprevealSideViewController reaction pan gesture when location in special region but not all tableview #67

Closed oblank closed 11 years ago

oblank commented 11 years ago
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------

is that possible to let pprevealSidelViewController only handle pangesture when startlocation in dot line region( left and right side only ) ?

https://docs.google.com/drawings/d/1PY2oNMmN9erzWIkPF07DvX3yteIjW642_Qi5FfAUMXk/edit?usp=sharing only green region need to reaction with pangesture

thanks

josipbernat commented 11 years ago

I think you need to make it manually. Add two UIView objects to your ViewController, one on the left side and other on the right side. Also add UIPanGestureRecognizer to each UIView and call PPRevealSideViewController methods for opening/closing.

ipodishima commented 11 years ago

Or just modify the code in PPReveal to create a tracking allowed rect on pan gesture method called

oblank commented 11 years ago

thanks @josipbernat @ipodishima