UIPageControl: When using Storyboards, pageIndicatorTintColor not used when numberOfPages = 1

Originator:vladimir.fleurima
Number:rdar://15541631 Date Originated:10/22/2013
Status:Open Resolved:
Product:iOS SDK Product Version:7.0
Classification: Reproducible:Always
 
Summary:
When configuring a UIPageControl in Interface Builder, setting a custom pageIndicatorTintColor in addition to setting numberOfPages = 1 will cause the pageIndicatorTintColor value to be ignored. It will default to a translucent white dot.

Attempting to set pageIndicatorTintColor or numberOfPages programmatically does not address the issue -- it remains "stuck" as a translucent white dot, no matter where or when you call those setters.

Steps to Reproduce:
1. Create an iOS 7 project in Xcode.
2. Drag a UIPageControl object onto the main view.
3. Set pageIndicatorTintColor to red.
4. Set numberOfPages to 1.
5. Associate a custom view controller with this view.
6. In -viewWillAppear (or anywhere, really), set numberOfPages to 2.
7. Run the app.

Expected Results:
To see the page control filled with a black dot and a red dot.

Actual Results:
The page control filled with a black dot and a translucent white dot.

Version:
iOS 7.0, iOS 7.1

Notes:
Workaround:
* Set numberOfPages to 2 in Interface Builder. 
** If that's undesirable from a UI perspective (e.g. you want the page control to be hidden until you set numberOfPages = N at a later date), just set numberOfPages to 1 in -viewWillAppear.

Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!