Ok, since this is a very useful piece of code for myself, I'm going to share it with you all. In Cocoa on the desktop, you can draw whatever you like into an NSImage very easily:However, coming to Cocoa Touch on iPhone, without searching around a bit you won't find a way to do this. Well, thanks to Sam Steele (of Last.fm infamy), here's a code snippet which will do the exact same thing for you! Yes it's all in the docs, but takes a bit of looking to find. Hopefully this will help some budding iPhone developers out there.