1234567891011121314151617181920212223242526272829 |
- //
- // NSLayoutConstraint+Ambiguity.m
- // FirstLink
- //
- // Created by ascii on 15/2/27.
- // Copyright (c) 2015年 FirstLink. All rights reserved.
- //
- #import "NSLayoutConstraint+Ambiguity.h"
- @implementation NSLayoutConstraint (Ambiguity)
- #ifdef DEBUG
- // po [[UIWindow keyWindow] _autolayoutTrace]
- //+ (void) reportAmbiguity:(UIView*) v {
- // if (nil == v)
- // v = [[UIApplication sharedApplication] keyWindow];
- // for (UIView* vv in v.subviews) {
- // NSLog(@"%@ %d", vv, vv.hasAmbiguousLayout);
- // if (vv.subviews.count)
- // [self reportAmbiguity:vv];
- // }
- //}
- #endif
- @end
|