Tag Archives: iOS

Progress with adding iCloud to Chef’s Book.

There are some interesting challenges with incorporating iCloud support, especially into an existing application. One, which I’ve been working through, is that you can no longer copy in a pre-existing store for the purposes of loading data. Such a move … Continue reading

Posted in Chef's Book, Programming | Tagged , , , , , , | 15 Comments

Whilst deciding what to include with the App, we write a PDF generator!

Managed to implement rendering of recipes into multipage PDF documents. They look something like this: Lasagne Recipe One thing to note whilst writing the code was the usual inverted co-ordinates. I wanted an image in the top left, title and … Continue reading

Posted in Programming | Tagged , , , , | Leave a comment

Providing a consistent UI experience between UITextField and UITextView

There are a few major differences between the two but the most glaring is that UITextView does not support styles so you cannot create them stylistically the same as a UITextField. You cannot readily apply background images depending on state … Continue reading

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

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 , , , , , , | Leave a comment

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