The standard technique is along these lines:
let pvc = UIPageViewController(transitionStyle: .scroll, navigationOrientation: .horizontal)
self.addChild(pvc)
self.view.addSubview(pvc.view)
pvc.view.frame = // whatever
pvc.didMove(toParent: self)
pvc.setViewControllers( //...
pvc.dataSource = // ...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.