I just realised that NSLog allows parameters. I’d previously been using
NSLog([NSString stringWithFormat:@"%d",randomVar]) ...
But now I realise that the I don’t really need to do this. A simple call to NSLog will work as well.
NSLog(@"%d",randomVar);
It still isn’t as easy as php or even java, but it’s shorter and tidier and so better.