21

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?

2
  • the error message is pretty informative
    – Daij-Djan
    Mar 17, 2013 at 21:36
  • It may be informative, but it's cryptic and confusing. Thanks to the answer below, I was able to find how to correct the problem. The strange thing is that the title was set in the Inspector, but not by me, hence my confusion as to why this was happening. Jul 22, 2019 at 19:12

1 Answer 1

68

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.

1
  • Thank you! Not sure why Xcode automatically filled in "Item" for title and then left it in place when I changed from "Custom" to "Cancel", but clearing out the title fixed it. Jul 22, 2019 at 19:14

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.