开发者

How to show popover on selecting an image

开发者 https://www.devze.com 2023-04-08 06:18 出处:网络
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 UIPopoverContro

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

精彩评论

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

关注公众号