Rejected configuration: a value other than autosave specified for the width (system elements, except for fixed ones, must use autocreation)

In Xcode 6 for iOS 8, I get the following warning:

MainStoryboard.storyboard: notice: Discouraged Configuration: Value other than autosizing specified for width (System items, other than fixed spaces, should use autosizing) 

It seems StachOverflow used to have such a question, but it has been removed. Unable to find other information on Google.

Clicking on the warning leads me to a UIBarButtonItem with a width of 70 and 0 as an image insert. Setting the width to 0 does not help.

Any ideas?

+5
source share
1 answer

The question asked almost 2 years ago, but I will give an answer in any case, if someone is looking for an answer to such a question.

In the UIBarButtonItem sizing inspector that you mentioned, which can also probably be set as an element , , change , etc.), you can explicitly enter the width value .

He expects not to enter any width value other than that caused by autoload if you select the system type for UIBarButtonItem .

+2
source

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


All Articles