ranonk
ranonk

Reputation: 475

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 through content using headers, but I won't get greedy yet.

Any input is appreciated.

Upvotes: 4

Views: 8891

Answers (4)

ranonk
ranonk

Reputation: 475

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.

Upvotes: 8

Sum
Sum

Reputation: 4399

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/

Upvotes: 1

omz
omz

Reputation: 53551

UIWebView should be accessible with VoiceOver without you doing anything.

Upvotes: 3

Related Questions