Monotouch:将 UISegmentedControl 插入 UIPopoverController 标头

发布于 2024-10-20 12:32:45 字数 349 浏览 9 评论 0原文

我会将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

避讳 2024-10-27 12:32:45

答案就在您自己发布的链接中。将视图控制器嵌入导航控制器中,并将分段控件添加为导航项的标题视图。弹出窗口控制器足够智能,可以识别这一点,并将您的导航栏绘制为其自己的标题的一部分。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文