Why am I getting a “Title set but using a system I

2019-02-11 14:38发布

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条回答
迷人小祖宗
2楼-- · 2019-02-11 15:15

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.

查看更多
登录 后发表回答