Monotouch:将 UISegmentedControl 插入 UIPopoverController 标头
我会将 UISegmentedControl 插入 UIPopoverController 标头中。我该怎么办? 检查此链接。 嵌入在 UINavigationBar/Item 中的 UISegmentedControl。 我会复制类似的行为。
谢谢你!!
编辑:特别是,UISegmentedControl 由三个段组成。每个段在 UiPopoverController 内显示不同的视图。
I would insert a UISegmentedControl into UIPopoverController header. How can I do?
Check this link.
UISegmentedControl embedded in a UINavigationBar/Item.
I would replicate a similar behavior.
Thank you!!
EDIT: In particular, the UISegmentedControl is composed by three segments. Each segment displays a different views inside the UiPopoverController.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案就在您自己发布的链接中。将视图控制器嵌入导航控制器中,并将分段控件添加为导航项的标题视图。弹出窗口控制器足够智能,可以识别这一点,并将您的导航栏绘制为其自己的标题的一部分。
The answer is in the link you posted yourself. Embed your view controller in a navigation controller and add the segmented control as the title view of your navigation item. The popover controller is smart enough to recognize this and will draw your navigation bar as part of its own header.