No Description

NSLayoutConstraint+Ambiguity.m 615B

1234567891011121314151617181920212223242526272829
  1. //
  2. // NSLayoutConstraint+Ambiguity.m
  3. // FirstLink
  4. //
  5. // Created by ascii on 15/2/27.
  6. // Copyright (c) 2015年 FirstLink. All rights reserved.
  7. //
  8. #import "NSLayoutConstraint+Ambiguity.h"
  9. @implementation NSLayoutConstraint (Ambiguity)
  10. #ifdef DEBUG
  11. // po [[UIWindow keyWindow] _autolayoutTrace]
  12. //+ (void) reportAmbiguity:(UIView*) v {
  13. // if (nil == v)
  14. // v = [[UIApplication sharedApplication] keyWindow];
  15. // for (UIView* vv in v.subviews) {
  16. // NSLog(@"%@ %d", vv, vv.hasAmbiguousLayout);
  17. // if (vv.subviews.count)
  18. // [self reportAmbiguity:vv];
  19. // }
  20. //}
  21. #endif
  22. @end