ios - Can UIScreenEdgePanGestureRecognizer be added on a subview that is not near screen edge? -



ios - Can UIScreenEdgePanGestureRecognizer be added on a subview that is not near screen edge? -

i downloaded illustration github: https://github.com/paulsolt/uiscreenedgepangesturedemo seems work fine. however, if alter greenview left frame 30 points superview in storyboard (not same superview in example), , alter code

[self.view addgesturerecognizer:leftedgegesture];

to

[_edgeview addgesturerecognizer:leftedgegesture];

the gesture not respond. guess can not add together uiscreenedgepangesturerecognizer subview unless subview border near screen edge, need know if doing wrong. thanks

yes, correct.. works views touches edge.

ios objective-c

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -