Created
January 8, 2014 08:25
-
-
Save keicoder/8313535 to your computer and use it in GitHub Desktop.
objective-c : Handy UIKit Debugging Functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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