Accessibility elements for a slider-like control
Accessibility elements for a slider-like control
- Subject: Accessibility elements for a slider-like control
- From: Fritz Anderson <email@hidden>
- Date: Wed, 30 Nov 2011 15:24:57 -0600
iPad, iOS 5.0 SDK targeting 4.3, Xcode 4.2.
I have a custom slider view, running left-to-right. It's supposed to represent progress along a timeline. As a recording plays, the cursor moves to the right. Also, the user may drag the cursor.
I have three UIAccessibilityElements to label the left-of-, on-, and right-of-cursor areas. Selecting an element gives you a hack of the set time (seventy-three seconds of two-hundred-forty) and a relation to the cursor (left of cursor).
All of this works (net of the old cursor frame still being shown after you've dragged it, though selecting again behaves correctly). But there is one more thing I'd like to do:
When the user drags the cursor, I'd like to continually speak a _percentage_ of the span (as UISlider can). When she releases the cursor, I'd like to speak the time hack again.
I don't see how to get the OS to re-poll the frames and labels, either during the drag or afterwards. None of the "notifications" that can be posted to UIAccessibilityPostNotification() seem to apply. (And I'd like a word with whoever overloaded the word "notification" for this purpose.)
How is this supposed to be done?
— F
_______________________________________________
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