domesticcatsoftware / DCRoundSwitch

A 'modern' replica of UISwitch.
MIT License
765 stars 162 forks source link

DCRoundSwitch causes UIAlertViews to lose their elastic animation #36

Closed taberrr closed 11 years ago

taberrr commented 11 years ago

Hi, I'm popping up a UIAlertView as the result of a DCRoundSwitch toggle, but this line in DCRoundSwitch.m:

// turn off the animations so the user doesn't see the changing of mask/clipping
[CATransaction setValue:(id)kCFBooleanTrue forKey:kCATransactionDisableActions];

is causing the elastic animation of the UIView to fail, so UIAlertViews instantly appear.