开发者

Dismiss a UIPopoverController

开发者 https://www.devze.com 2023-02-25 07:24 出处:网络
Is there a right mechanism to dismiss a UIPopoverController from the controller that I\'ve passed in the ctor?

Is there a right mechanism to dismiss a UIPopoverController from the controller that I've passed in the ctor?

_popover = new UIPopoverController(myController);

From myController instance, I would dismiss the popover but I can't find any system UIViewController property to do that.

A fix is to create a public property in MyController class of type UIPopoverController and then set it when I create the _popover instance. But I think it's not so good开发者_如何学运维.

myController.PopOverProperty = _popover;


_popover.Dismiss(true);

Do you need this?

0

精彩评论

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