UIPageControl does not appear when Vertical is selected

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.

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.

+3
source share
1 answer

, , UIPageViewController , UIPageControl . , , UIPageControl, UIPageViewController, .

. UIScrollView pagingEnabled UIPageControl scrollView. UIPageControl ,

pageControl.transform = CGAffineTransformMakeRotation(M_PI / 2);

, . - . , , , .

+11

All Articles