Function Prototype:
void CGContextShowTextAtPoint ( CGContextRef c, CGFloat x, CGFloat y, const char *string, size_t length );
but in the 4th argument you pass * NSString ** (and not * const char **, as required by the function prototype).
You can convert NSString to string C using the cStringUsingEncoding method for NSString, for example:
CGContextShowTextAtPoint(context, 50, 50, [stringFromDate cStringUsingEncoding:NSASCIIStringEncoding]);
source share