ipad UIPopoverController

0 ipad

如何在UITableView的选定单元格上放置UIPopoverController的箭头

Big*_*ket 5

您可以定义要将弹出框指向的CGRect.

CGPoint point = ...; // where they tapped on screen, taken from UIEvent, if you like
CGSize size = ...; // give a size range, maybe the size of your table cell
[popover presentPopoverFromRect:CGRectMake(point.x, point.y, size.width, size.height) 
inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
Run Code Online (Sandbox Code Playgroud)