UIPageController in conjuction with UIPageControl?

前端 未结 2 1537

I have been using UIPageController to navigate between different controllers. Now I would like to add that dots at the bottom, so user can see on which controll

2条回答
  •  暖寄归人
    2020-12-17 14:57

    If you are using Page Based application template of Xcode then go to Attribute inspector and set Transiton style property to Scroll.

    and go to your application AppDelegate.m file and set the tint color for the

     UIPageControl *pageControl = [UIPageControl appearance];
        pageControl.pageIndicatorTintColor = [UIColor lightGrayColor];
        pageControl.currentPageIndicatorTintColor = [UIColor blackColor];
        pageControl.backgroundColor = [UIColor whiteColor]; 
    

    For the page based Xcode template its already their for iOS 6,iOS 7 just its color is set to white.

提交回复
热议问题