fastred / SloppySwiper

UINavigationController delegate that allows swipe back gesture to be started from anywhere on the screen (not just from the edge).
MIT License
806 stars 107 forks source link

Alternative ways of achieving the same effect #1

Closed fastred closed 9 years ago

fastred commented 10 years ago

The same functionality can be obtained in one of these (less safe) ways:

  1. swizzle UIScreenEdgePanGestureRecognizer to let it recognize pan gestures started not only from the edge (I haven't tested it yet)
  2. grab the target and action from interactivePopGestureRecognizer and use them with UIPanGestureRecognizer (it uses private APIs): https://gist.github.com/fastred/3ccd1740e1464dbf8675
SbIm commented 9 years ago

I am also thinking about swizzle method, but I dont know the detail of interactivePopGestureRecognizer. Do u have any ideas?

fastred commented 9 years ago

Moved this issue to wiki: https://github.com/fastred/SloppySwiper/wiki