我在我的iPad应用中显示了一个弹出框 Controller :
[self.programMapPopOver presentPopoverFromRect:anchor.frame
inView:anchor.superview
permittedArrowDirections:UIPopoverArrowDirectionAny
animated:YES];
我的问题是 anchor :我想将UIBarButtonItem *设置为其 anchor ,但它不是UIView *,但是inView是view *参数。
我该如何解决?
谢谢大家!
最佳答案
您需要使用 presentPopoverFromBarButtonItem:permittedArrowDirections:animated:
。
关于ios - 如何在UIS中将UIBarButtonItem设置为弹出框的 anchor ?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16921009/