【问题标题】:Custom Container ViewController Xamarin / Monotouch Example自定义容器 ViewController Xamarin / Monotouch 示例
【发布时间】:2013-07-26 18:32:02
【问题描述】:

有没有人有一个简单的 C# 示例,展示如何按照这个 Apple 文档将自定义容器 ViewControllers 与 Xamarin / Monotouch 一起使用 -

http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/CreatingCustomContainerViewControllers/CreatingCustomContainerViewControllers.html

【问题讨论】:

    标签: uiviewcontroller xamarin.ios custom-controls xamarin uisegmentedcontrol


    【解决方案1】:

    与其发布问题,不如离开并创建一个示例更有帮助。

    https://github.com/wickedw/ViewControllerContainer/blob/master/README.md

    自述文件摘录

    在一个项目中,我想根据用户选择显示 3 个不同的信息“屏幕”。

    TabBarController 不合适,因为 GUI 位于 UINavigationController 层次结构中。然而,UISegmentedControl 非常适合该设计。

    我已经将我的视图完全编码为单独的 ViewController(并非所有视图都使用相同的创建模式,一些使用 Monotouch Dialog,其他 Nib 文件,其他编程)。

    因此,我不想重写现有代码以使用单个 ViewController 控制多个视图。

    我还认为是时候查看“自定义 ViewController 容器”了,因为它们似乎非常适合这种情况。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-25
      相关资源
      最近更新 更多