为什么我会收到UIBarButtonItem自定义警告? [英] Why am I getting an UIBarButtonItem customization warning?

查看:119
本文介绍了为什么我会收到UIBarButtonItem自定义警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的故事板,在导航视图控制器中有一个表视图,从表视图推送到另一个具有全屏图像视图的视图控制器。表视图在其导航栏中有一个提示文本。当我点击表格视图中的表格视图单元格时,我会收到以下警告。我根本没有自定义后退按钮。我创建了一个展示问题的示例项目。

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

任何人都知道我收到此警告的原因是什么?

Anyone have an idea why I'm receiving this warning?


UIBarButtonItem自定义UIBarMetricsDefaultPrompt或UIBarMetricsLandscapePhonePrompt的后退按钮背景图像。

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时,此问题无法重现,因此似乎修复了此错误,您不必再担心它了。

I've tried your code in a lot of combinations: Xcode 5.0.2 \ beta one, iPhone 5 \ iPhone 5s and various Simulators. 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.

这篇关于为什么我会收到UIBarButtonItem自定义警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆