开发者

Making a UIWebView accessible

Simple question.

I have a UIWebView. It displays plain html text with a few headers. I want VoiceOver to read the content of this web view.

It would also be nice if I could make use of VoiceOver's rotor to let the user scroll th开发者_运维知识库rough content using headers, but I won't get greedy yet.

Any input is appreciated.


What I have learned: If the view that the UIWebView is contained in is marked as accessibility enabled then voiceover will not pass through to the UIWebView.


UIWebView should be accessible with VoiceOver without you doing anything.


read this one : http://arstechnica.com/apple/guides/2010/02/iphone-voiceservices-looking-under-the-hood.ars/


From the iOS developer documentation for accessibility.

A user interface element is accessible if it reports itself as an accessibility element. Although being accessible is not enough to make a user interface element useful to VoiceOver users, it represents the first step in the process of making your application accessible.

You can do something like this (or manually set a label):

[_view setIsAccessibilityElement:YES];

There is a lot of information here. I suggest that you consult this.

http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/iPhoneAccessibility/Making_Application_Accessible/Making_Application_Accessible.html#//apple_ref/doc/uid/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜