Re: How do I replicate UISegmentedControl's “2 of N” behavior with VoiceOver?
Re: How do I replicate UISegmentedControl's “2 of N” behavior with VoiceOver?
- Subject: Re: How do I replicate UISegmentedControl's “2 of N” behavior with VoiceOver?
- From: Chris Fleizach <email@hidden>
- Date: Wed, 24 Jul 2013 10:37:45 -0700
Your best bet is to append "2 of 3" to the accessibilityValue or label.
It's true it's not exactly what UISegment does, but you won't be able to achieve that with public API
On Jul 24, 2013, at 9:48 AM, Jim Correia <email@hidden> wrote:
> I am writing a custom control which is conceptually similar to UISegmentedControl — it has N elements, which act as buttons, and can be in the selected state — but has different appearance requirements from UISegmentedControl, so I can't use that directly.
>
> I'd like the control to have the same accessibility properties as UISegmentedControl.
>
> When VoiceOver reads out a segment in a UISegmentedControl, it reads:
>
> Selected, Title, Button, 2 of 3
>
> When VoiceOver reads out a segment in my custom control, it reads:
>
> Selected, Title
>
> How do I get my custom control to behave like a UISegmentedControl for the purposes of VoiceOver? I could set the accessibilityValue to "2 of 3", but this doesn't appear to be what UISegmentedControl is doing.
>
> —Jim
>
>
> _______________________________________________
> 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