enter image description here

See the picture.
It is necessary that the label had limitations in size from the right "wall". It is necessary to stretch the label , and if you manually stretch, then on different devices will look different.

Closed due to the fact that the essence of the issue is incomprehensible by the participants Max Mikheyenko , user194374, aleksandr barakin , VAndrJ , user207618 August 17 '16 at 11:02 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Good question! - Waver
  • The question in this formulation is not clear. What kind of restrictions? - VAndrJ
  • constraints - these are constraints - Waver

1 answer 1

If you create a UI in InterfaceBuilder , then use auto layout, specify that the right edge of the label should always be tied to the right edge of your View . If you create a label in code, then specify autoresizingMask with the values ​​you need.