简体   繁体   English

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

[英]Why am I getting an UIBarButtonItem customization warning?

I have a simple storyboard with a table view inside a navigation view controller that pushes from the table view to another view controller that has a full screen image view. 我有一个简单的故事板,在导航视图控制器中有一个表视图,从表视图推送到另一个具有全屏图像视图的视图控制器。 The table view has a prompt text in it's navigation bar. 表视图的导航栏中有一个提示文本。 When I tap on the table view cell in the table view I receive the warning below. 当我点击表格视图中的表格视图单元格时,我会收到以下警告。 I'm not customizing the back button at all. 我根本没有自定义后退按钮。 I created a sample project showing the issue. 我创建了一个展示问题的示例项目。

https://github.com/stevemoser/UIBarButtonItemCustomizationWarningExampleProject https://github.com/stevemoser/UIBarButtonItemCustomizationWarningExampleProject

Anyone have an idea why I'm receiving this warning? 任何人都知道为什么我收到这个警告?

UIBarButtonItem customization of back button background image for UIBarMetricsDefaultPrompt or UIBarMetricsLandscapePhonePrompt is ignored` 将忽略UIBarButtonItem自定义UIBarMetricsDefaultPrompt或UIBarMetricsLandscapePhonePrompt的后退按钮背景图像。

I've tried your code in a lot of combinations: Xcode 5.0.2 \\ beta one, iPhone 5 \\ iPhone 5s and various Simulators. 我已经尝试了很多组合的代码:Xcode 5.0.2 \\ beta one,iPhone 5 \\ iPhone 5s和各种模拟器。 This issue isn't reproducible when using new beta iOS SDK, so seems like this bug was fixed and you don't have to worry about it anymore. 使用新的测试版iOS SDK时,此问题无法重现,因此似乎修复了此错误,您不必再担心它了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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