Skip to content

Instantly share code, notes, and snippets.

@hramos
Created December 27, 2010 19:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hramos/756458 to your computer and use it in GitHub Desktop.
Save hramos/756458 to your computer and use it in GitHub Desktop.
Print CGRect frame to console
#define PrintFrame(frame) NSLog(@"F X:%f Y:%f W:%f H:%f", frame.origin.x, frame.origin.y, frame.size.width, frame.size.height);
@soffes
Copy link

soffes commented Dec 27, 2010

#define PrintFrame(frame) NSLog(@"%@", NSStringFromCGRect(frame));

@hramos
Copy link
Author

hramos commented Dec 27, 2010

Thanks. I had no idea :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment