I am using the following code in my application :-
In .h file
@property (strong, nonatomic) IBOutlet UIPageControl *pageControl;
and in .m file
pageControl.currentPage = counting;
counting is NSInteger
. The application works fine but the UIPageControl
is set to default white colour and I cant change the colour through attributes inspector
could any one help?...
In ios 6, you can just do:
pageControl.pageIndicatorTintColor = [UIColor blueColor];
pageControl.currentPageIndicatorTintColor = [UIColor greenColor];
Similar as below.
How can i change the color of pagination dots of UIPageControl?
I think there is no property for page controller to change the dot color
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With