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:
// HardCheck the iOS SDK documentation for UIKit String Conversions, there's more useful stuff (for example NSStringFromCGPoint and NSStringFromCGSize).
//NSLog(@"%.0fx%.0f (%.0fx%.0f)",
// frame.origin.x, frame.origin.y,
// frame.size.width, frame.size.height);
// Easy
NSLog(@"My box: %@",
NSStringFromCGRect(frame));
cool!
ReplyDeleteSuper :)
ReplyDelete