AMNGlobalUtilities
AMNGlobalUtilities copied to clipboard
Addition: LOG_VECTOR
Hi,
sorry to lazy for fork&pull ;)
Log macro for CGVector. New in iOS7 for UIKit dynamics.
// CGVector
#define LOG_VECTOR(vector) (NSLog(@"" #vector @" dx:%f dy:%f", vector.dx, vector.dy ));
These macros might also come handy if you need to draw some custom views, want to visually check a view's frame or just want to debug the GUI. They're only for debug purpose.
#define MAKE_IT_GREEN(V) [V setBackgroundColor:[UIColor greenColor]]
#define MAKE_IT_GREEN_CG(V) [V setBackgroundColor:[[UIColor greenColor] CGColor]]