Ver código fonte

Shorten the frame description so it fits in the info bar better.

Ryan Olson 12 anos atrás
pai
commit
d0f9b7a580
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      Classes/Utility/FLEXUtility.m

+ 2 - 2
Classes/Utility/FLEXUtility.m

@@ -27,7 +27,7 @@
     }
     }
     
     
     if (includeFrame) {
     if (includeFrame) {
-        description = [description stringByAppendingFormat:@" frame %@", [self stringForCGRect:view.frame]];
+        description = [description stringByAppendingFormat:@" %@", [self stringForCGRect:view.frame]];
     }
     }
     
     
     if ([view.accessibilityLabel length] > 0) {
     if ([view.accessibilityLabel length] > 0) {
@@ -39,7 +39,7 @@
 
 
 + (NSString *)stringForCGRect:(CGRect)rect
 + (NSString *)stringForCGRect:(CGRect)rect
 {
 {
-    return [NSString stringWithFormat:@"{x: %g, y: %g, w: %g, h: %g}", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height];
+    return [NSString stringWithFormat:@"{(%g, %g), (%g, %g)}", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height];
 }
 }
 
 
 + (UIViewController *)viewControllerForView:(UIView *)view
 + (UIViewController *)viewControllerForView:(UIView *)view