문제

I'm creating UIPageViewController and overriding these functions:

 - (NSInteger)presentationCountForPageViewController:(UIPageViewController *)pageViewController
 - (NSInteger)presentationIndexForPageViewController:(UIPageViewController *)pageViewController 

and it creates a PageControl here.

How can i change the style of PageContol? (default is white, but i need dark)

도움이 되었습니까?

해결책

In the UIPageControl class reference (http://developer.apple.com/library/ios/#documentation/uikit/reference/UIPageControl_Class/Reference/Reference.html), you can find two properties that will be of your interest: pageIndicatorTintColor and currentPageIndicatorTintColor.

Change those two properties of you UIPageControl instance with UIColor you want, e.g. [UIColor blackColor] for dark color, etc.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top