Presenting a Popover From a Rect Problem

Posted by Sheehan Alam on Stack Overflow See other posts from Stack Overflow or by Sheehan Alam
Published on 2010-04-20T03:45:49Z Indexed on 2010/04/20 3:53 UTC
Read the original article Hit count: 367

I have a UITableViewCell that has some labels and images that can be clicked. I want to present a popover whenever a user clicks on any part of the cell. How can I achieve this without interfering with the click actions of the labels & images?

I am currently creating an invisible button ontop of some other clickable items in the cell and calling the popover:

    [replyPopover presentPopoverFromRect:CGRectMake(77, 25, 408, 68) inView:self permittedArrowDirections: UIPopoverArrowDirectionDown animated:YES];

Unfortunately, because the button is on top of the labels & images I am unable to click them.

How can I show a popover by clicking on the background of a cell, so that there is no interference when clicking images & labels inside the cell?

© Stack Overflow or respective owner

Related posts about ipad

Related posts about iphone-sdk