The function's prototype is:
void CGContextShowTextAtPoint (
CGContextRef c,
CGFloat x,
CGFloat y,
const char *string,
size_t length
);
but in the 4th argument you are passing a NSString * (and not a const char * as required by the function prototype).
You can convert the NSString to a C string using the cStringUsingEncoding method of the NSString, e.g.:
CGContextShowTextAtPoint(context, 50, 50, [stringFromDate cStringUsingEncoding:NSASCIIStringEncoding]);
diciu
2010-05-28 05:04:31