From https://blog.twitter.com/2012/simple-strategies-smooth-animation-iphone