在新的xcode4.2中实现一个简单的popover并捕获dismissPopover事件
我放弃并需要一些帮助。
我正在尝试使用故事板在 xcode4 中实现一个简单的选择器弹出窗口,
我创建了一个故事板并添加了一个选择器视图。我已将一个按钮链接到视图,并显示带有选择器的视图。出现选择器弹出窗口,我可以选择我想要的值。当我关闭弹出窗口时,我没有收到任何事件。之前,在调用视图中调用了“popoverControllerDidDismissPopover”方法。从这里我可以执行任何弹出窗口后操作并检索我根据选择器选择计算的任何特定结果。这一切以前都是有效的。
使用故事板时“popoverControllerDidDismissPopover”相当于什么
谢谢
I give up and need some help.
I am trying to implement a simple picker popover in xcode4 using the story board
I have created a storyboard and added a view which is a picker. I have linked a button to the view, and the view with the picker is displayed. The picker popover appears and I can select the value I want. When I dismiss the popover, I get no event. previously the method "popoverControllerDidDismissPopover" was called in the calling view. From here I could perform any post popover operations and retrieve any specific resultsI had calculated on the basis of the picker selection. This was all working previously.
What is the equivalent of the "popoverControllerDidDismissPopover" when using storyboards
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
让“拥有”popover/segue 的视图控制器使用
popoverControllerDidDismissPopover
方法实现UIPopoverControllerDelegate
协议。另外,请确保在 Interface Builder 中为您的 Segue 分配了一个标识符。然后,实现prepareForSegue
方法:现在您将按预期收到
popoverControllerDidDismissPopover
消息。Have your view controller that "owns" the popover/segue implement the
UIPopoverControllerDelegate
protocol, with thepopoverControllerDidDismissPopover
method. Also, make sure your segue is assigned an identifier in Interface Builder. Then, implement theprepareForSegue
method:Now you'll receive the
popoverControllerDidDismissPopover
messages as expected.