快速分页与故事板和不同的设计
问题描述:
我想做一个介绍视图,你可以通过页面(分页)滑过我的swift 2应用程序。快速分页与故事板和不同的设计
能正常工作。但问题是我必须以不同风格设计每一页。
有没有方法或另一个教程来设计故事板中的每个页面?
答
你可以做的是!取一个UIContainerView
并为其添加一个UIPageViewController。
UIContainerView
:https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIPageViewControllerClassReferenceClassRef/index.html
UIPageViewController
: https://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/ImplementingaContainerViewController.html
感谢,
您可以使用支持分页功能的集合视图。 – amorbytes
以及如何?有教程吗?我第一次这样做:/ – Stack108
你可以做的是!取一个'UIContainerView'并为其添加一个'UIPageViewController'。 https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIPageViewControllerClassReferenceClassRef/index.html https://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/ImplementingaContainerViewController.html – amorbytes