I want to be able to debug C structures without having to explicitly type every property that they consist of.
i.e. I want to be able to do something like this:
CGPoint cgPoint = CGPointMake(0,0); NSLog(@'%@',cgPoint);
Obviously the ‘%@’ won’t work, hence the question.
You can try this:
There are a number of functions provided by UIKit that convert the various CG structs into
NSStrings. The reason it doesn’t work is because%@signifies an object. ACGPointis a C struct (and so areCGRects andCGSizes).