添加一个UITapGestureRecognizer; 然后:
tgr= [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(MapTouched:)];
[MapView addGestureRecognizer:tgr];
其中响应函数如下:
- (void)MapTouched:(UITapGestureRecognizer*)t
{
CGPointpt = [tlocationInView:MapView];
NSLog(@"%@",NSStringFromCGPoint(pt));
}