开发者

Show a Popovercontroller from within a TableViewCell?

开发者 https://www.devze.com 2023-03-29 08:35 出处:网络
It doesn\'t seem to work setting the \"inView:\" attr开发者_如何学Pythonibute of \"presentPopoverFromRect\" to the cell itself.If the inView: is the cell, be sure to set the FromRect to cell.bounds in

It doesn't seem to work setting the "inView:" attr开发者_如何学Pythonibute of "presentPopoverFromRect" to the cell itself.


If the inView: is the cell, be sure to set the FromRect to cell.bounds instead of cell.frame.

The cell's frame is relative to its super view and not the cell itself. Also, the popover is shown next to the specified CGRect (not in).

0

精彩评论

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