VoiceOver with custom UISlider-based switch within UITableViewCell
VoiceOver with custom UISlider-based switch within UITableViewCell
- Subject: VoiceOver with custom UISlider-based switch within UITableViewCell
- From: Michael Tyson <email@hidden>
- Date: Sat, 06 Apr 2013 12:24:32 +1100
Hello,
I've a custom UISwitch replacement based upon UISlider which I use for visual styling purposes. It already works like a UISwitch via VoiceOver - it appears as a button that can be toggled.
I'm currently making my app more accessible, and have noticed that the Preferences app treats UITableViewCells with a switch inside as one button that can be toggled, as opposed to a non-interactive label on the left, and a switch on the right.
How might I go about replicating this behaviour?
I've tried:
- Setting shouldGroupAccessibilityChildren on the cell to YES
- Setting isAccessibilityElement to NO on cell.textLabel
- Implementing a custom accessibilityFrame method on the UISlider replacement class that returns the superview cell's bounds
Cheers,
Michael
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden