UIPageViewController
2629
views
UIPageViewControllerのUIPageViewControllerTransitionStyleでページめくりのアニメーションを変える。アニメーションはUIPageViewControllerを呼び出す側で、transitionStyleを設定する。
ページをめくる画面はUIPageViewControllerで設計する…presentationCountと2つのpageViewControllerを用意する。presentationCountは上のコードにあるようにpagesの数を返すだけの関数。UIPageViewControllerというクラス、そしてページ画面のポイントは2つのpageViewControllerにある。UIPageViewControllerはページを戻るときと、ページを進めるときの動作を表す。