Created
October 18, 2016 11:48
-
-
Save ManWithBear/9724397ad88ba0bee04a4d65a9d95fa4 to your computer and use it in GitHub Desktop.
Help to understand layout issues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints. | |
2. Add debug command: | |
- ObjC: po [[UIWindow keyWindow] _autolayoutTrace] | |
- Swift: expr -l objc++ -O -- [[UIWindow keyWindow] _autolayoutTrace] | |
3. Colorfy bad views: | |
expr ((UIView *)0x7f9ea3d43410).backgroundColor = [UIColor redColor] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment