Tom Howard
Tom Howard

Reputation: 4908

Inhibit `Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0` warnings

I have an abundant amount of Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0 warnings in my project in ~80 xib files. I have attempted to fix these warnings using answers found here: Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0, but this led to AutoLayout issues. Fixing all the consequential effects is not something our team wants to take on, and furthermore QA. I know how to turn off all warnings for xib files in a target. How do I ignore this specific warning?

Upvotes: 1

Views: 2393

Answers (2)

Amy
Amy

Reputation: 301

Find all the multi-line UILabels in your project (Lines = 0 in Attributes Inspector) and set their Preferred Width property in Size Inspector to 0 (check the Explicit check box).

Upvotes: 7

Sonic
Sonic

Reputation: 518

Check the label constrain, the answer was to click on the constraint, and then look in the Utilities bar (on the right). As shown in the picture below, click on an item and then make sure that "relative to margin" is unchecked.

enter image description here

Upvotes: 0

Related Questions