changing accessibility frame and touching an object
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