• 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
changing accessibility frame and touching an object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

changing accessibility frame and touching an object


  • Subject: changing accessibility frame and touching an object
  • From: Scott McCormack <email@hidden>
  • Date: Fri, 31 May 2013 18:34:34 -0700

I have a UISwitch that I am chaining it's accessibilityFrame to cover the UILabel next to it as well. Everything is working as excepted except when I try and touch the switch to select it I still have to touch the switch itself rather than the larger frame that includes the UILabel. Here's the code that I use to change the accessibilityFrame:

    CGRect mergedSwitchRect = CGRectUnion(self.shouldGroupLabel.accessibilityFrame, self.shouldGroupSwitch.accessibilityFrame);
    CGPoint switchPoint = self.shouldGroupSwitch.accessibilityActivationPoint;
    self.shouldGroupSwitch.accessibilityFrame = mergedSwitchRect;
    self.shouldGroupSwitch.accessibilityActivationPoint = switchPoint;

The UILabel is not accessibilityEnabled as I want the switch (with it's expanded frame) to get VO focus not the label.

---
Scott McCormack
Senior Accessibility Consultant - IT Manager
SSB BART Group
email@hidden
www.ssbbartgroup.com


 _______________________________________________
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

  • Follow-Ups:
    • Re: changing accessibility frame and touching an object
      • From: Chris Fleizach <email@hidden>
  • Prev by Date: Accessibility and NSCollectionView
  • Next by Date: Re: Accessibility and NSCollectionView
  • Previous by thread: Re: Accessibility and NSCollectionView
  • Next by thread: Re: changing accessibility frame and touching an object
  • Index(es):
    • Date
    • Thread