I am trying to show a popover on selection of a imag开发者_如何学JAVAe in my iPad.So how can i do it?
Put a transparent button on the image and of the size of the image and then use the UIPopoverController to launch a pop over view... hope this helps.
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *mousePoint = [touches anyObject];
CGPoint point = [mousePoint locationInView:self.view];
_didClickMark=CGRectContainsPoint(mImageView.frame, point);
if(_didClickMark)
// show popover
}
This might help you.
精彩评论