Uipageview有单独的列表

时间:2015-03-20 12:06:33

标签: ios objective-c uiviewcontroller xcode6 uipageviewcontroller

我正在使用故事板在xCode 6.2中编写应用程序,并且需要在页面视图类型设置中显示2个不同的列表(类似于Beat - 音乐播放器)。

PageView控制器是我以前从未使用过的东西,因此,我查看了几个示例,并且都处理了一个Image View并根据数组更改了它的内容。然而,我本来想要实现的是使用PageView控制器在两个单独的ViewControllers之间滑动。这甚至可能吗?如果是这样,有人能指出我正确的方向吗?

1 个答案:

答案 0 :(得分:0)

魔术由两个代表方法viewControllerBeforeViewControllerviewControllerAfterViewController ...

完成

当您使用setViewControllers:@[theFirstViewController]将第一个viewcontroller加载到pageviewcontroller时,pageviewcontroller将向两个代表询问下一个和之前的vcs ...您负责委托返回您要显示的vcs,no无论你想要显示什么样的vc ......

相关问题