开发者

Dismiss popover view by pressing on a button on content view

开发者 https://www.devze.com 2023-02-01 01:57 出处:网络
I am implementing a settings view which be loaded as a content view of a popover controller in the main view, and the problem is:

I am implementing a settings view which be loaded as a content view of a popover controller in the main view, and the problem is:

There are 2 buttons on the settings view: Cancel and Done which are to abort or save and apply changes, and then dismiss the popover view, I already pass the popoverController instance from main view to the settings view and then call:

[popoverController dismissPopoverAnimated:YES];

But nothing happen, the popover view still visible until I tap somewhere outside of it. I already search on the internet but not found answer yet.

Does anyone know how to do this please help me开发者_开发知识库!

0

精彩评论

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