Why am I getting an UIBarButtonItem customization warning?

时光怂恿深爱的人放手 提交于 2019-12-19 17:43:59

问题


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 customization of back button background image for UIBarMetricsDefaultPrompt or UIBarMetricsLandscapePhonePrompt is ignored`


回答1:


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.



来源:https://stackoverflow.com/questions/19103071/why-am-i-getting-an-uibarbuttonitem-customization-warning

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!