AMNGlobalUtilities icon indicating copy to clipboard operation
AMNGlobalUtilities copied to clipboard

Addition: LOG_VECTOR

Open MBulli opened this issue 11 years ago • 0 comments

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]]

MBulli avatar Apr 22 '14 11:04 MBulli