didSelectRowAtIndexPath TableView Popover Issue

Posted by Jack Cody on Stack Overflow See other posts from Stack Overflow or by Jack Cody
Published on 2010-06-01T20:17:58Z Indexed on 2010/06/02 0:23 UTC
Read the original article Hit count: 388

Filed under:

I've tried a lot of different code examples including just brute force try this try that but, stumped.

The popover left arrow seems to display just fine if the first row is displayed at the very top of the table view but, when the table scrolls down the popover left arrow doesn't align correctly with the table row selected. Solutions or suggestions would be most appreciated.

CGRect myFrame = [tableView rectForRowAtIndexPath:indexPath];

[self.editViewPopoverController setPopoverContentSize:CGSizeMake(320, 400)];

[self.editViewPopoverController presentPopoverFromRect:CGRectMake(myFrame.origin.x, myFrame.origin.y + offset, 400, 0) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionLeft animated:YES];


© Stack Overflow or respective owner

Related posts about uitableview

Related posts about ipad