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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -