7

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?...

laxonline
  • 2,657
  • 1
  • 20
  • 37
vinay
  • 351
  • 1
  • 5
  • 16

2 Answers2

31

In ios 6, you can just do:

pageControl.pageIndicatorTintColor = [UIColor blueColor];
pageControl.currentPageIndicatorTintColor = [UIColor greenColor];
Ben Wheeler
  • 6,788
  • 2
  • 45
  • 55
1

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

Community
  • 1
  • 1
svrushal
  • 1,612
  • 14
  • 25