2016-11-15 48 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);