Call both of After and Before Method in UIPageViewController when swim for forward in Swift 3 iOS
问题 I made UIPageViewController with datasource array and it's works correctly. But when swiping to right for forwarding call both of After and Before methods. My codes is here: import UIKit class MainPageViewController: UIPageViewController,UIPageViewControllerDataSource { override func viewDidLoad() { super.viewDidLoad() self.dataSource = self initUPageVC(idx:0,isAnimate:false,direction: UIPageViewControllerNavigationDirection.forward) } func pageViewController(_ pageViewController: