gpt4 book ai didi

ios - 在 iOS 中获取谷歌地图中的可访问标记

转载 作者:搜寻专家 更新时间:2023-10-31 19:28:36 24 4
gpt4 key购买 nike

我正在尝试使用 iOS 中的 Google Maps SDK(Swift 3.0、XCode 8.1)在我的标记/项目/集群上使用无障碍功能。

可访问性检查器将“特征”显示为“按钮”,但在突出显示时,它实际上显示了正确的标签(参见屏幕截图)。

Marker NOT clicked/highlighted

Marker clicked/highlighted

我正在尝试在标记、群集项、标记图标甚至标记 iconView 上添加代码:

marker.accessibilityLabel = "marker Accessibility label"
marker.icon.accessibilityLabel = "marker icon accessibility label"

同时将“isAccessibilityElement”设置为 true。

有没有人有在 iOS 上访问 Google map 的经验?

谢谢!

最佳答案

您需要为 GMSMapView 对象启用辅助功能。

mapsView.accessibilityElementsHidden = false

引用:-

https://developers.google.com/maps/documentation/ios-sdk/map

部分 - 辅助功能

关于ios - 在 iOS 中获取谷歌地图中的可访问标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43874391/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com