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

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

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