| Steve Jobs on stage @ WWDC 11 introducing iCloud |
The musing and sometimes not so wise words of Jonathan Dalrymple, Global Traveller, Programmer, Financial Rocket Scientist, Conspiracy Theorist, Part-time comedian, full-time funny man and whatever else i randomly decide to do.
Friday, October 14, 2011
Friday, August 12, 2011
I took a picture [Apollo 11 Edition]
Tuesday, April 12, 2011
Animating a series of images with CALayer
So you want a to animate a series of images, flip book style. While it is true you can use UIImageView, everyone knows that is for wimps. Real men (& ladies ;) ) use CALayer (like a boss)...
But how? Well you might have some how got in your head that CALayer's contents property supports a NSArray of CGImages. Well this is not the answer, remember that the contents property takes an 'id'as a argument so it supports virtually everything under the sun and then some. Hell, if you felt like making crazy things happen you could just throw a NSData object in there.
Anyways, the actual solution is to use a CAKeyFrameAnimation, to manage the rotation of your images, control the frame rate, and ultimately the duration.
Well all is said and done it should look at this
Thursday, March 31, 2011
Coming to America
Anyways the trip is split into 4 parts, over two months.
A. New York city
B. Jamaica
C. Los Angeles
D. WWDC in San Francisco.
Interestingly, I have no return ticket, not because I'm planning on becoming an illegal (please note TSA) but because I'm not sure if I'm coming back to the UK or if I will carry on heading west, and reunite myself with the Chinese people (they miss me you know).
The first leg is booked for April 18th, so as song says I'll be "new York da da da dada da new York" HOV ...
While WWDC should be a blast the most emotional part will be going back to Jamaica almost 10 years to the date that I left.
Bon voyage