Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Argument to show View bounds in Xcode

Tags:

xcode

ios

uiview

I remember using an argument which was set in Edit Scheme -> Run -> Arguments which would display the view borders in yellow color.

Could not find any references to it, may be I am looking for wrong term, could some one help ?

like image 202
GoodSp33d Avatar asked Feb 24 '16 21:02

GoodSp33d


Video Answer


2 Answers

There is an auto layout specific method described in document (described in the "Visualizing Views and Constraints" section). Start the app in the Simulator, go back to Xcode and select Debug -> View Debugging -> Show Alignment Rectangles.

like image 200
JustSid Avatar answered Oct 12 '22 06:10

JustSid


A little late to the party, but I believe the run argument you're looking for is

-UIViewShowAlignmentRects YES

like image 35
Spencer Avatar answered Oct 12 '22 06:10

Spencer