我有一个自定义视图。我捕获了视图的屏幕快照,并在NSTextAttachment中将图像用作:
UIImage *image = view.image;
NSTextAttachment *attachment = [NSTextAttachment new];
attachment.image = image;
然后我使用以下附件创建一个可变的属性字符串:
NSAttributedString *attrStr = [NSAttributedString attributedStringWithAttachment:attachment];
此代码针对所有视图循环播放,并通过将所有attrStr附加为以下内容来创建一个最终的属性字符串:
[mutableString beginEditing];
[mutableString appendAttributedString:attrStr];
[mutableString endEditing];
然后将其设置为UILabel属性文本。
问题:我想让语音遍历属性文本中的各个图像。这样每个图像都可以通过语音清晰对焦。
谢谢!!
答案 0 :(得分:0)
遍历单个图像(例如像集合视图)的最佳方法依赖于以下事实:将每个元素定义为特征属性为{{的包装器中的**Queued project collection creation for host: 57cd339d-cdef-48e5-b049-b80de4949dd2
[Info @13:00:26.567] Waiting for servicing. Host: 57cd339d-cdef-48e5-b049-b80de4949dd2. JobId: 03c49056-b761-441b-a543-dbe986a45248
[Info @13:10:57.046] TF255269: The following team project collection is being created: 57cd339d-cdef-48e5-b049-b80de4949dd2.
[Info @13:11:02.048] details: 0
[Info @13:11:02.048] pseudo ops(*)?False
[Info @13:11:07.051] details: 0
[Info @13:11:07.051] pseudo ops(*)?False
[Info @13:11:12.054] details: 0
[Info @13:11:12.054] pseudo ops(*)?False
[Info @13:11:17.057] details: 0
[Info @13:11:17.057] pseudo ops(*)?False
[Info @13:11:22.059] details: 0
[Info @13:11:22.059] pseudo ops(*)?False
[Info @13:11:27.061] details: 0
[Info @13:11:27.061] pseudo ops(*)?False
[Info @13:11:27.061] TF255269: The following team project collection is being created: 57cd339d-cdef-48e5-b049-b80de4949dd2.
[Warning@13:11:27.063] TF255270: The following team project collection could not be created because the process timed out: (57cd339d-cdef-48e5-b049-b80de4949dd2).
[Warning@13:11:27.064] TF255271: The team project collection could not be created. The number of steps before the completion of project creation is: -1. The number of steps completed before the failure was 0.
[Info @13:11:27.085] Node returned: Error
[Warning@13:11:27.087] There was a problem or delay during the creation of your initial Team Project Collection. To check the status of the Team Project Collection, launch the Team Foundation Administration Console and review the current status on the Team Project Collection node.
You must create at least one team project collection before you can use the features of Team Foundation Server. You can create a team project collection by using the New Team Project Collection Wizard from the Team Foundation Administration Console.**
1}}。
要了解应如何实施,建议您看一下UIAccessibilityElement
视频,其视频内容得到了here的完美总结,展示的示例可以为downloaded。
使用adjustable
protocol也可能是一条有趣的调查轨迹。
最后,我认为您不能照原样在属性文本中迭代图像,但是创建一种VoiceOver完全可以理解的可访问结构,如之前定义的那样,可以实现您的目标。< / p>