2017-07-28 181 views

回答

2

順應UIPageViewControllerDelegate和實現以下方法:

func pageViewController(UIPageViewController, willTransitionTo: [UIViewController]) { 
    // called when swiping begins 
} 

func pageViewController(UIPageViewController, didFinishAnimating: Bool, previousViewControllers: [UIViewController], transitionCompleted: Bool) { 
    // called when swiping ends 
} 
+0

謝謝!這很好知道! – SwiftyJD

1

退房的UIPageViewControllerDelegate。您可能正在尋找pageViewController(_:didFinishAnimating:previousViewControllers:transitionCompleted:)

相關問題