2016-11-15 13 views
0

我曾嘗試下面的代碼來設置垂直頁面指標視圖控制器如何設置垂直頁面指標的iOS

self.pageController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll navigationOrientation:UIPageViewControllerNavigationOrientationVertical options:nil]; 

self.pageController.dataSource = self; 
[[self.pageController view] setFrame:[[self view] bounds]]; 

我能夠使用此代碼垂直滾動,但點都沒有得到顯示,如果我設置navigationOrientation這樣的:

navigationOrientation:UIPageViewControllerNavigationOrientationVertical 

How to develop vertical page indicators as shown in the below image:

回答

0

某處在你的代碼,你設置的pageControl,添加:

pageControl.transform = CGAffineTransformMakeRotation(M_PI/2);