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 protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to