开发者

Dismiss popover view by pressing on a button on content view

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜