简体   繁体   English

为什么我会收到“标题集但使用系统标识符”警告?

[英]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.

相关问题 为什么会收到“未知班级”警告? - Why am I getting this “No known class” warning? 为什么我会收到UIBarButtonItem自定义警告? - Why am I getting an UIBarButtonItem customization warning? 为什么会收到此编译器警告? - Why am I getting this compiler warning? 为什么会出现“使用未解决的标识符'GIDSignIn'”的错误? - Why I am getting error of “Use of unresolved identifier 'GIDSignIn'”? 为什么会收到“未使用表达式结果”警告? - Why am I getting an 'Expression Result Unused' warning? 我在Xcode for iOS中得到了“枚举类型的隐式转换”警告,我不知道为什么 - I am getting an “Implicit conversion from enumeration type” warning in Xcode for iOS and I don't know why 当我在 C-Objective 中使用外部图表时,如何在 Xcode 6.1.1 中正确设置 Bundle Identifier? - How to set Bundle Identifier correctly in Xcode 6.1.1 when I am using external charts in C-Objective? 为什么我在Objective-C的枚举中收到类型冲突警告? - Why am I getting a type conflict warning on my enum in Objective-C? 为什么我从Xcode收到此警告? iOS代码似乎很好 - Why am I getting this warning from Xcode? The iOS code seems fine 为什么在显示我的自定义 UIAlert 时会收到 Nil Layout Anchor 警告? - Why am I getting Nil Layout Anchor warning while presenting my custom UIAlert?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM