From http://ios-sdk.blogspot.ca/2012/01/cabasicanimation.html