Customized UISegmentedControl draws wrong divider when selecting a segment
Originator: | cmkilger | ||
Number: | rdar://10999544 | Date Originated: | 3/6/2012 |
Status: | Closed | Resolved: | Duplicate/10906011 |
Product: | iPad SDK | Product Version: | 5.0 |
Classification: | UI/Usability | Reproducible: | Always |
06-Mar-2012 06:26 PM Cory Kilger: Summary: When creating a customized UISegmentedControl using the appearance API, if you select any segment other than the first before it's initially displayed, the wrong divider will be drawn. Steps to Reproduce: 1. Create an iOS app. 2. Add a UISegmentedControl to a view, programmatically or in the nib. 3. Select any segment other than the first, in -viewDidLoad or in the nib. 4. Run the app. 5. Observe that the normal-normal divider was drawn rather than the normal-selected. Expected Results: The normal-selected divider should be drawn. Actual Results: The normal-normal divider is drawn. Notes: Adding a delay to the segment selection makes it draw correctly.
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!