Why am I getting a “Title set but using a system Identifier” warning?

青春壹個敷衍的年華 提交于 2019-12-05 12:32:25

问题


I get the following warning:

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?


回答1:


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.



来源:https://stackoverflow.com/questions/15466451/why-am-i-getting-a-title-set-but-using-a-system-identifier-warning

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!