ios - 为什么我会收到 UIBarButtonItem 自定义警告?

标签 ios warnings uinavigationbar uibarbuttonitem uibarmetrics

我有一个简单的 Storyboard,在导航 View Controller 内有一个 TableView ,它从 TableView 推送到另一个具有全屏 ImageView 的 View Controller 。 TableView 的导航栏中有提示文本。当我点击表格 View 中的表格 View 单元格时,我收到以下警告。我根本没有自定义后退按钮。我创建了一个示例项目来展示这个问题。

https://github.com/stevemoser/UIBarButtonItemCustomizationWarningExampleProject

有人知道我为什么会收到此警告吗?

UIBarButtonItem customization of back button background image for UIBarMetricsDefaultPrompt or UIBarMetricsLandscapePhonePrompt is ignored`

最佳答案

我已经在很多组合中尝试了您的代码:Xcode 5.0.2\beta one、iPhone 5\iPhone 5s 和各种模拟器。使用新的测试版 iOS SDK 时无法重现此问题,因此似乎此错误已修复,您不必再担心了。

关于ios - 为什么我会收到 UIBarButtonItem 自定义警告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19103071/

相关文章:

ios - 以编程方式实现非传统渐变图案

ios - 将图像和标题添加到导航 backBarButtonItem

ios - 如何使用 Objective-C 在 ios 9 中调用带有条件的 json

ios - 如何在具有约束的界面生成器中调整 UIImageView(对于 3.5"and 4")的大小

php - 引用 - 这个错误在 PHP 中意味着什么?

安卓警告 : Grows due to localized text expansion

ios - Error Domain=NSCocoaErrorDomain Code=3840 是属于服务器端还是本地代码端?

php - "Notice: Undefined variable"、 "Notice: Undefined index"、 "Warning: Undefined array key"和 "Notice: Undefined offset"使用 PHP

swift - UIImagePickerController 导航栏色调颜色不适用于 iOS 13

ios - Storyboard应用程序中丢失的导航按钮