-
-
Save wen-long/8a93901a9305f1ba6e93 to your computer and use it in GitHub Desktop.
iOS AutoLayout debug
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
po [[UIWindow keyWindow] _autolayoutTrace] // prints layouts ambiguity | |
po [view constraintsAffectingLayoutForAxis:0] // horizontal | |
po [view constraintsAffectingLayoutForAxis:1] // vertical | |
[view hasAmbiguousLayout] // BOOL | |
[view exerciseAmbiguityInLayout] // visualizing ambiguity | |
viewController.extendedLayoutIncludesOpaqueBars = NO; | |
viewController.automaticallyAdjustsScrollViewInsets = NO; | |
viewController.edgesForExtendedLayout = UIRectEdgeNone; | |
navigationBar.translucent = NO; | |
expr (void)[CATransaction flush] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment