UIPageViewController

使用transitionFromViewController 轉換 UIPageViewController - 跳頁

 一般UIPageViewController 使用viewControllerBeforeViewController及viewControllerAfterViewController來轉換到上一頁或下一頁,但是若想跳頁的話,怎麼辦?使用transitionFromViewController。

Unbalanced calls to begin/end appearance transitions for <UIPageViewController:

 當手動來轉換至UIPageViewController時,若出現Unbalanced calls to begin/end appearance transitions for UIPageViewController:,這表示兩個UIPageViewController不當重疊。

解決方法:

找到這一行,並去掉這一行

訂閱文章