ios - numberOfTouchesRequired only working for :1 / only working on iPad -
i set gesturerecognizer this
uitapgesturerecognizer *singlefingertap = [[uitapgesturerecognizer alloc] initwithtarget:self action:@selector(handlesingletap:)]; [self addgesturerecognizer:singlefingertap]; singlefingertap.numberoftapsrequired = 3;
and selector:
- (void)handlesingletap:(uitapgesturerecognizer *)recognizer { nslog(@"yyeyyyyeyyyyyeyyyyye"); }
the class subclass of uiview , want selector fired on third time - works when setting numberoftapsrequired 1.
i wondered why gesturerecognizer
never recognized changed , swapped many things until realized it's working fine except won't when numberoftapsrequired 1.
any ideas this?
edit: somehow work on ipads ios 7 , ios 8. have guessed there constraints limiting touch area 1 click work on devices else can difference here?
Comments
Post a Comment