气馁配置:为宽度指定的自动调整以外的值(系统项,固定空格以外的值,应使用自动调整大小)

Sun*_*kas 5 objective-c uibarbuttonitem ios

在iOS 8的XCode 6构建中,我收到以下警告:

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

在StachOverflow之前似乎有这样的问题,但它被删除了.在Google上找不到任何其他信息.

单击警告会将我引导至宽度为70且为0的UIBarButtonItem作为图像插入.将宽度设置为0无济于事.

有任何想法吗?

Bur*_*rak 3

这个问题是近两年前提出的,但无论如何我都会给出答案,以防有人正在寻找此类问题的答案。

在您提到的尺寸检查器中UIBarButtonItem,您也可能将其设置为系统定义的栏按钮项(例如刷新完成编辑等),您可能已在其中明确输入了宽度值

如果.​​UIBarButtonItem