allocate
allocate

Reputation: 1343

Announce everything in a UIWebView using VoiceOver?

My app is primarily loading text-based HTML files into a UIWebView. When a new HTML file is loaded, I'd like it to be read in its entirety to VoiceOver users. Right now, it reads only the headings within <h1> tags, and then stops.

It works great if I double finger swipe down. I'd really just like to automate that process upon each new page load. Right now I'm using the following within webViewDidFinishLoad:

UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, self.theText)
UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification, self.theText)

Upvotes: 0

Views: 658

Answers (1)

unobf
unobf

Reputation: 7244

Don't do this! Let the user control their own interaction with the page. Trying to do this would be akin to forcing a sighted user to read every single sentence before showing them the next sentence and not allowing them to skim the page (for example the headings) and choose what to read.

Upvotes: 2

Related Questions