Skip to content

Instantly share code, notes, and snippets.

@leoniralves
Forked from xNekOIx/iOSAutoLayoutDebug
Last active August 29, 2015 14:13
Show Gist options
  • Save leoniralves/900f443c552b2958a00b to your computer and use it in GitHub Desktop.
Save leoniralves/900f443c552b2958a00b to your computer and use it in GitHub Desktop.
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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment