简体   繁体   English

UIPage控件的配音或可访问性

[英]Voice over or accessibility for UIPage control

Current implementation of my iOS app is like I have a pagination enabled UIScrollView . 我的iOS应用程序的当前实现就像我启用了分页UIScrollView I have to enable voice over for the same which should voice over the use for pages like "this is the first view", "this is the custom view","this is the nature Photos view" on scrolling to the 1st,2nd or 3rd pages. 我必须启用相同的配音功能,才能在滚动到第1、2nd或第2个页面时使用配音,例如"this is the first view", "this is the custom view","this is the nature Photos view"等页面的使用第三页。

Problem- problem is the voice over repeats like Page 1 of 3, page 2 of 3, Page 3 of 3 rather than the given messages. 问题-问题是重复的声音,例如第1页(共3页),第2页(共3页),第3页(共3页),而不是给定的消息。

you have to use Accessibility Attributes like Label in this case and set the message you want. 您必须在这种情况下使用“可访问性”属性(例如“标签”)并设置所需的消息。

You can follow this wonderful tutorial, which will also guide you to debug and test. 您可以按照这个精彩的教程进行操作,它还将指导您进行调试和测试。

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

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