• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
VoiceOver with custom UISlider-based switch within UITableViewCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: UICollectionViewCell
  • Next by Date: NSBrowser editItemAtIndexPath:withEvent:select:
  • Previous by thread: Re: UICollectionViewCell
  • Next by thread: NSBrowser editItemAtIndexPath:withEvent:select:
  • Index(es):
    • Date
    • Thread