GoodSp33d
GoodSp33d

Reputation: 6282

Argument to show View bounds in Xcode

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 ?

Upvotes: 7

Views: 3430

Answers (2)

Spencer
Spencer

Reputation: 382

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

-UIViewShowAlignmentRects YES

Upvotes: 9

JustSid
JustSid

Reputation: 25318

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.

Upvotes: 10

Related Questions