Customized UISegmentedControl draws wrong divider when selecting a segment
06-Mar-2012 06:26 PM Cory Kilger:
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.
The normal-selected divider should be drawn.
The normal-normal divider is drawn.
Adding a delay to the segment selection makes it draw correctly.
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!