【问题标题】:Fragments and ViewPager in iOSiOS 中的 Fragments 和 ViewPager
【发布时间】:2018-05-29 01:09:29
【问题描述】:

我正在从 android 过渡到 iOS,想知道是否有一种本地方法可以创建由几个 UI 元素组成的页面模板,并以编程方式创建 N 次。在 android 中,这将通过在每次页面更改时在 ViewPager 中创建的 Fragment 来完成。

我知道 iOS 有一个 UIPageViewController,但我无法找到一种方法在不使用情节提要的情况下以编程方式创建 N 次。

谢谢,

【问题讨论】:

    标签: ios swift uiscrollview android-viewpager uipageviewcontroller


    【解决方案1】:

    我能够使用与 UIPageViewConroller 连接的容器视图来解决我的问题。 Visually illustrated here

    This was a helpful tutorial to get me started with UIPageViewControllerse

    【讨论】:

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