Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the "Ag" shown as background of the box Constraints of the panel "size inspector" of Xcode 6 or 7?

In Interface Builder of XCode 6 or 7 on the right Inspector panel, sometimes in the background of the box Constraint is shown the text "Ag", even if there is no error (red) notification in the constraints. What does it means? Box Constraint

like image 355
Beppex Avatar asked May 12 '16 08:05

Beppex


1 Answers

The "Ag" appears if a text is associated with the ui element. For example a title text for an UIButton. As others already mentioned, I think it's a helper feature for text alignments.

Caution: If you deal with the language orientations (e.g. right-to-left) a text in a title field sometimes interferes with the auto layout features of the interface builders. I once had the phenomena that the auto layout change for the right-to-left orientation places a button some points more to the right as I intended. The reason was a forgotten text in the title field. After deleting that text the "Ag" disappears and the button was placed as I intended.

like image 137
Hardy_Germany Avatar answered Nov 09 '22 02:11

Hardy_Germany