Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当有人触摸 iPad 上的 XLForm 按钮时,我试图呈现一个弹出框。
选择器向我传递了一个 XLFormDescriptor 对象,但我不知道如何获取按钮的框架,以便从中显示弹出框。
向正确方向轻推将不胜感激!
UITableViewCell *cell = [sender cellForFormController:self]; alertController.popoverPresentationController.sourceRect = cell.frame;