简体   繁体   English

粗体文本辅助功能选项隐藏 UIButtonBarItem 图形

[英]Bold Text accessibility option hides UIButtonBarItem graphics

This is a follow-up to a question I asked last week here .这是我上周在这里提出的一个问题的后续。 The main screen of my app has two button bars.我的应用程序的主屏幕有两个按钮栏。 Each of the buttons has either an image or a text label.每个按钮都有一个图像或一个文本标签。 I've determined that when the user has the Bold Text Accessibility option enabled, the image buttons disappear from the screen.我已经确定,当用户启用了粗体文本辅助功能选项时,图像按钮会从屏幕上消失。 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.基于文本的按钮出现并正常运行。

Is this expected behavior, or is this a bug in the iOS implementation?这是预期的行为,还是 iOS 实现中的错误? If it's a bug, is there a procedure to report it?如果这是一个错误,是否有报告它的程序? Is there a workaround?有解决方法吗? My fallback solution is to display a warning based on UIAccessibilityIsBoldTextEnabled() , but I would like to do better.我的后备解决方案是显示基于UIAccessibilityIsBoldTextEnabled()的警告,但我想做得更好。

I have just had the issue reported to me by one of my customers.我的一位客户刚刚向我报告了这个问题。 I can replicate the issue on iOS12 however Apple appear to have fixed it in iOS13.我可以在 iOS12 上复制这个问题,但是 Apple 似乎已经在 iOS13 中修复了它。

My workaround for iOS12 is to set the tintColor of the toolbar:我对 iOS12 的解决方法是设置工具栏的 tintColor:

[toolbar setTintColor:[UIColor grayColor]];

With the tintColor set the toolbar buttons are visible with Bold Text on.设置 tintColor 后,工具栏按钮在打开粗体文本时可见。

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

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