简体   繁体   中英

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

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

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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