I can make it UIPageControlwork when the PageViewControllerNavigation style is set to Horizontal, however, when I select Vertical, it UIPageControldoes not appear horizontally or vertically.
UIPageControl
PageViewController
Horizontal
Vertical
I set the look of my UIPageControl in AppDelegate:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. UIPageControl *pageControl = [UIPageControl appearance]; pageControl.pageIndicatorTintColor = [UIColor lightGrayColor]; pageControl.currentPageIndicatorTintColor = [UIColor blackColor]; pageControl.backgroundColor = [UIColor whiteColor]; return YES; }
Is there a way to make it visible in a vertical position? The code above works if an option is selected for navigation Horizontal, but not when selected Vertical.
, , UIPageViewController , UIPageControl . , , UIPageControl, UIPageViewController, .
UIPageViewController
. UIScrollView pagingEnabled UIPageControl scrollView. UIPageControl ,
UIScrollView
pageControl.transform = CGAffineTransformMakeRotation(M_PI / 2);
, . - . , , , .