How to change color of UIPageControl when used in ios 5 simulator

I use the following code in my application: -

In the .h file

@property (strong, nonatomic) IBOutlet UIPageControl *pageControl; 

and in the .m file

 pageControl.currentPage = counting; 

NSInteger counting. The application works fine, but the UIPageControl set to white by default, and I cannot change the color through the attribute inspector can anyone help? ...

+7
source share
2 answers

In ios 6, you can simply:

 pageControl.pageIndicatorTintColor = [UIColor blueColor]; pageControl.currentPageIndicatorTintColor = [UIColor greenColor]; 
+29
source

Similarly below.

How to change the color of pagination points of UIPageControl?

I think there is no property for the page controller to change the color of the dot

+1
source

All Articles