Re: Setting accessibilityLabel of a UIWebView
Re: Setting accessibilityLabel of a UIWebView
- Subject: Re: Setting accessibilityLabel of a UIWebView
- From: Chris Fleizach <email@hidden>
- Date: Mon, 11 Jul 2011 13:04:54 -0700
I just tried setting
isAccessibilityElement = YES on UIWebView
and
accesssibilityLabel = @"test" on said web view and as a result VoiceOver selected the whole web area and just said test
Can you attach your code if your experience something different
On Jul 11, 2011, at 4:40 AM, Ortwin Gentz wrote:
> I'm using a UIWebView subclass to essentially display a formatted test label. I don't wanna use UIWebView's internal VoiceOver labels because they're separated into multiple accessibilty elements. So I just want VO to speak a single text for the entire webView.
>
> I tried to just set the accessibilityLabel property of my webView subclass, but that had no effect.
> I also tried to set isAccessibilityElement of my webView subclass to YES, but that had no effect either.
> I tried overriding -isAccessibilityElement in my webView subclass always returning YES, but then there were accessibility elements at all.
>
> What should I do? I wanna avoid adding a dummy view just for VO.
>
> Thanks,
> Ortwin _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Accessibility-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden