[英]Why am I getting a “Title set but using a system Identifier” warning?
I get the following warning: 我收到以下警告:
MainStoryboard.storyboard: Title set but using a system Identifier (These attributes are mutually exclusive; the Title will be ignored)
MainStoryboard.storyboard:标题集但使用系统标识符(这些属性是互斥的;标题将被忽略)
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 (eg “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. 您不需要这样做,因为将条形按钮项设置为系统栏按钮项(如取消)将自动设置标题 - 它将为您本地化。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.