Layout regarding Xcode 6 brand warning, but not limited

I have a scary warning Attribute Unavailable: Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0 , but in my case Margin does not appear in the storyboard, and the corresponding label (the one that is highlighted when I click on the warning) does not have restrictions. In fact, the whole view has no limits.

I saw other posts, for example. Unavailable warning attribute in iOS versions prior to 8.0 , but, as I said, there is no Margin , and there are no restrictions for editing.

I will add restrictions and hope this goes away, but it seems like another error ...

+5
source share
1 answer

I think I saw the same for UILabels in Interface Builder. For me, the warning is turned off by checking this box.

Preferred width

+19
source

Source: https://habr.com/ru/post/1203436/


All Articles