UISwitch setThumbTintColor crashes (duplicate of rdar://12562867)

Originator:google+
Number:rdar://12749839 Date Originated:26-Nov-2012 06:34 PM
Status:Open Resolved:
Product:iPhone SDK Product Version:iOS 6(10A525)
Classification:Crash Reproducible:Always
 
Summary:
When setting the thumbTintColor multiple times in a short time period the app crashes.

Steps to Reproduce:
1. Open attached sample project.
2. Run sample application in simulator or on device.
3. Press 'setThumbTintColor:' button multiple times
4. Crash

Expected Results:

No crash.
UISwitch sets thumbTintColor without any problems

Actual Results:
Crash

Regression:
Seems to be an early deallocation bug.
When debugging with NSZombiesEnabled the log shows an error.

Notes:

Duplicate of rdar://12562867

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!