Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What exactly spine is in UIPageViewController?

Tags:

The iOS doc says that we can present one or 2 pages at a time depending on the spine location or position and double sided state...
But, I am unable to understand "What exactly spine is in UIPageViewController ?"enter image description here

like image 884
aMother Avatar asked Jan 02 '14 07:01

aMother


1 Answers

It applies only when transitionStyle is set to PageCurl (otherwise it evaluates to None); during the animation of the UIPageViewController a 3D page is displayed: this property controls where the border of the page is attached with respect to the parent controller (that is, the position of the 'spine' of the displayed 3D book).

Min means it is attached on the left side, Max for the right, and Mid displays two consecutive pages split in the middle. In pictures (the spine is in red):

Apple example PageViewController app with different spine settings

Reference: Apple documentation.

like image 99
Pietro Saccardi Avatar answered Oct 14 '22 01:10

Pietro Saccardi