UILongPressGestureRecognizer on MKAnnotationView not working for single touch

给你一囗甜甜゛ 提交于 2019-12-06 12:15:59
Denis

Have you seen this question ?

For using my UILongPressGestureRecognizer I disabled AnnotationView and added GestureRecognizer to it:

[ann_view setEnabled:NO];
UILongPressGestureRecognizer* long_press = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPressAnnotationView:)];
long_press.minimumPressDuration = 1.5;
[ann_view addGestureRecognizer:long_press];
[long_press release];
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!