Skip to content

Instantly share code, notes, and snippets.

@keicoder
Created January 8, 2014 08:25
Show Gist options
  • Select an option

  • Save keicoder/8313535 to your computer and use it in GitHub Desktop.

Select an option

Save keicoder/8313535 to your computer and use it in GitHub Desktop.
objective-c : Handy UIKit Debugging Functions
Handy UIKit Debugging Functions
//before
NSLog(@"self.bounds (%g,%g,%g,%g)"
self.bounds.origin.x,
self.bounds.origin.y,
self.bounds.size.width,
self.bounds.size.height);
//after : handy string conversions functions in UIKit
NSString* NSStringFromCGAffineTransform (CGAffineTransform transform);
NSString* NSStringFromCGPoint (CGPoint point);
NSString* NSStringFromCGRect(CGRect rect);
NSString* NSStringFromCGSize(CGSize size);
NSString* NSStringFromUIEdgeInsets(UIEdgeInsets insets);
Reference : UIKit Function Reference
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment