【问题标题】:Monotouch: insert an UISegmentedControl into UIPopoverController headerMonotouch:将 UISegmentedControl 插入 UIPopoverController 标头
【发布时间】:2011-03-02 17:22:23
【问题描述】:

我会在 UIPopoverController 标头中插入一个 UISegmentedControl。我能怎么做? 检查此链接。 UISegmentedControl embedded in a UINavigationBar/Item。 我会复制类似的行为。

谢谢!!

编辑:特别是 UISegmentedControl 由三个段组成。每个段在 UiPopoverController 中显示不同的视图。

【问题讨论】:

    标签: xamarin.ios uipopovercontroller uisegmentedcontrol


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-05-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-26
      • 2014-04-05
      相关资源
      最近更新 更多