NSRangeException throwed when I set currentPageIndicatorTintColor for UIPageControl

Originator:greenfish29
Number:rdar://16685292 Date Originated:22-Apr-2014 12:43 PM
Status:Open Resolved:
Product:iOS Product Version:7.1
Classification: Reproducible:Always
 
Summary:
When I set currentPageIndicatorTintColor through UIPageControl appearence and page control has numberOfPages = 0, NSRangeException is throwed.

Steps to Reproduce:
1. Create UIPageControl in UIViewController.
2. Set in viewDidLoad numberOfPages = 0 for this page control.
3. In AppDelegate -(void)application:didFinishLaunchingWithOptions: set [[UIPageControl appearance] setCurrentPageIndicatorTintColor:[UIColor redColor]];

Expected Results:
No exception is throwed and application don't crash.

Actual Results:
NSRangeException throwed.

Version:
7.1/11D167

Attachments:
'PageControlTest.zip' was successfully uploaded.

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!