开发者

How to show popover on selecting an image

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜