Text after "div class =" itemprop = "text">
I have successfully applied a UIScreenEdgePanGestureRecognizer, and my method is correctly triggered, but the hint recogniser's " The "edges" property is always set to UIRectEdgeNone despite being recognized with the correct gesture edges set to UIRectEdgeBottom
Below is my setup for the recogniser:.
- (zero) setupEdgeRecognizer {UIScreenEdgePanGestureRecognizer * R = [[UIScreenEdgePanGestureRecognizer alloc] initWithTarget: Self-action: @Selector (swipeupformbottom :)]; R.minimumNumberOfTouches = 1; R.maximumNumberOfTouches = 1; R.delaysTouchesBegan = yes; R.delegate = self; [R set digits: uiractadbottom]; }
And this method that is actually executed when I expect:
- (zero) swipeUpFromBottom: (UIScreenEdgePanGestureRecognizer *) gestureEvent { // The fault is here! If gesture event.Agages is always UIETEdgeNon (iCareEventAgees ==UIKteadGebtom) {// some stuff}}
It is quite straight forward, except I need to test the assets of the edges, it To see the edge was recognized, the above sample only shows the problem that my actual codebase detects on every edge, and I need to then break that forward.
Obviously I can trigger various methods on this, but I do not want to do this in this example.
Does anyone know why this property is set on how will I expect?
Thank you in advance for your help.
As far as I know, despite name edges, it should be set to a single corner. Therefore, there is no need to check which identities were identified on which side, because the swipe frame will be closed only if you set yourself a representative, then on the left side of the left corner, Along with, you can add another UIScreenEdgePanGestureRecognizer, then in the representative method, you can see which direction the user swip it.
- (bool) gestureRecognizerShouldBegin: (UIScreenEdgePanGestureRecognizer *) g {if (g == leftRecognizer) {// swipe left. } And if (g == r) {// swipe down}}
Comments
Post a Comment