为什么我得到“标题集但使用系统标识符”?警告? [英] Why am I getting a "Title set but using a system Identifier" warning?
本文介绍了为什么我得到“标题集但使用系统标识符”?警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到以下警告:
MainStoryboard.storyboard:标题集但使用系统标识符
(这些属性是相互排斥;标题将被忽略)
MainStoryboard.storyboard: Title set but using a system Identifier (These attributes are mutually exclusive; the Title will be ignored)
我的故事板上有一个手动放置的工具栏,带有标题和取消按钮。这有什么问题?
I have a manually placed toolbar on my storyboard with a Title and a Cancel button. What's wrong about that?
推荐答案
您是否在取消按钮中添加标题(例如取消)?
Are you adding a title to the Cancel button (e.g. "Cancel")?
您不需要这样做,因为设置条形按钮项目作为系统栏按钮项目(如取消)将自动设置标题 - 它将为您本地化。
You don’t need to do this as setting the bar button item as a system bar button item (like Cancel) will automatically set the title—and it’ll be localized for you.
这篇关于为什么我得到“标题集但使用系统标识符”?警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文