Tag Archives: Core Graphics

Following on from dynamic clocks.

It would also be nice to draw multiple clocks if one is ‘full’ it starts another. This example draws and returns a maximum of three clocks but always returns a 90×30 image: – (UIImage *)drawClocks:(NSNumber *)time { UIImage *image; int … Continue reading

Posted in Programming | Tagged , , , , , , | Comments Off on Following on from dynamic clocks.

Drawing little clock icons dynamically.

It’s kind of nice to be able to dynamically draw little ‘clock’ time icons. This function returns a UIImage of 30×30 pixels containing such an image: static inline float radians(double degrees) { return (degrees * M_PI) / 180; } – … Continue reading

Posted in Programming | Tagged , , , , , , | 1 Comment