I wish to add an image on top of a mapView the purpose of which is to calculate the area contained under that image. Having less or no experience in maps, I am not really sure how to go about it. So, here is what I used.
image = [UIImage imageNamed:@"Fla.png"];
img = [[UIImageView alloc] initWithImage:image];
img.userInteractionEnabled = YES;
img.backgroundColor = [UIColor clearColor];
img.contentMode = UIViewContentModeCenter;
img.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
twoFingerPinch = [[UIPinchGestureRecognizer alloc]
initWithTarget:self
action:@selector(twoFingerPinch:)];
[img addGestureRecognizer:twoFingerPinch];
[self.mapView addSubview:img];
The image is being displayed fine and the pinch to zoom is working fine as well but the problem is the map stops responding as soon as the imageView is added. If I remove the imageView, the map works fine again.
Also came across this but didnt work for me.
Any help will be much appreciated.