Fixed animation curves for iOS 7

This isn't the best hack in the world, but it does work reliably.