Sometimes you need to debug location of objects. This can be difficult, when those objects are transparent or have same color as the background.
Showing posts with label NSStringFromCGRect. Show all posts
Showing posts with label NSStringFromCGRect. Show all posts
Wednesday, May 11, 2011
Visual UI Debugging
Labels:
CGColor,
debug,
NSLog,
NSStringFromCGRect,
UIColor
Wednesday, April 13, 2011
Better Debug for CGRect, CGPoint and CGSize
Can't remember how many times I've wanted to debug what is the size of a frame. Can't remember how many times I've written x and y coordinates, followed by width and height, to console log.
All wasted time and effort, while I could have been doing something more productive! Live and learn: just found out that iOS SDK contains helper routines for that task:
All wasted time and effort, while I could have been doing something more productive! Live and learn: just found out that iOS SDK contains helper routines for that task:
Labels:
CGRect,
debug,
NSLog,
NSStringFromCGRect,
UIKit
Subscribe to:
Posts (Atom)