消失的 UIBarButtonItem 图像 [英] Disappearing UIBarButtonItem images

查看:18
本文介绍了消失的 UIBarButtonItem 图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在 iOS App Store 上发布了一个应用.应用程序的主屏幕有两个按钮栏.每个按钮都有一个图像或一个文本标签.该界面是使用 XCode Storyboard 编辑器开发的.

I have an app that was recently released on the iOS App Store. The main screen of the app has two button bars. Each of the buttons has either an image or a text label. The interface was developed with the XCode Storyboard editor.

一位用户给我发了一张屏幕截图,显示所有基于图像的按钮都消失了.我们已经确定按钮是有效的——点击按钮应该出现的地方会产生预期的效果,所以按钮有效但不可见.基于文本的按钮显示和功能正常.

One user sent me a screen shot that shows that all the image-based buttons have disappeared. We've determined that the buttons are functional -- tapping where the button should appear has the desired effect, so the button is effectively present but invisible. The text-based buttons appear and function normally.

受影响的用户在 iPhone 6s 上运行当前版本的 iOS.删除应用程序并重新下载没有任何效果.

The affected user is running the current version of iOS on an iPhone 6s. Deleting the app and re-downloading had no effect.

该应用程序已被下载数百次,并且有几个用户向我发送了积极的反馈.我只有这一份关于丢失按钮的报告.除了根据条件启用/禁用之外,我对按钮外观没有做任何花哨的事情.我无法在模拟器或任何硬件测试设备上重现该问题.

The app has been downloaded a few hundred times, and several users have sent me positive feedback. I've only got this one report of missing buttons. Other than enabling/disabling depending on conditions, I'm not doing anything fancy with the button appearance. I can't reproduce the problem on the emulator nor any of my hardware test devices.

知道这里发生了什么吗?

Any clue what's happening here?

推荐答案

是的!它是辅助功能下的粗体文本选项.谢谢,马特.

Yes! it's the Bold Text option under Accessibility. Thanks, Matt.

现在下一个问题是,我能做些什么吗?我知道我可以根据 UIAccessibilityIsBoldTextEnabled() 显示警告,但我想做得更好.有没有办法让按钮在选项打开时显示?这是 iOS 实现中的错误,还是预期行为?

Now the next question is, is there anything I can do about it? I know I can display a warning based on UIAccessibilityIsBoldTextEnabled(), but I would like to do better. Is there any way to get the buttons to display when the option is turned on? Is this a bug in the iOS implementation, or is it expected behavior?

这篇关于消失的 UIBarButtonItem 图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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