当有人触摸iPad上的XLForm按钮时,我试图呈现一个弹出窗口。
选择器传递给我一个XLFormDescriptor对象,但我无法弄清楚如何获取按钮的框架,以便我可以显示它的弹出窗口。
非常感谢正确方向的推动!
答案 0 :(得分:1)
UITableViewCell *cell = [sender cellForFormController:self];
alertController.popoverPresentationController.sourceRect = cell.frame;