如何从XLForm Button呈现Popover?

时间:2015-03-09 12:57:53

标签: ios uipopovercontroller xlform

当有人触摸iPad上的XLForm按钮时,我试图呈现一个弹出窗口。

选择器传递给我一个XLFormDescriptor对象,但我无法弄清楚如何获取按钮的框架,以便我可以显示它的弹出窗口。

非常感谢正确方向的推动!

1 个答案:

答案 0 :(得分:1)

UITableViewCell *cell = [sender cellForFormController:self];
alertController.popoverPresentationController.sourceRect = cell.frame;