简体   繁体   中英

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)

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM