UIStackView and shouldGroupAccessibilityChildren
UIStackView and shouldGroupAccessibilityChildren
- Subject: UIStackView and shouldGroupAccessibilityChildren
- From: David Dunham <email@hidden>
- Date: Mon, 24 Jul 2017 14:20:30 -0400
Normally my iOS app is able to use shouldGroupAccessibilityChildren to get
items navigated in the best order (rather than the top-down, left-to-right
which seems to be the default).
I’ve got a UILabel and a UITextField that I want navigated in that order. I’m
putting them in a UIStackView for layout purposes:
UIStackView* nameContainer = [[UIStackView alloc]
initWithArrangedSubviews: @[caption, clanName]];
nameContainer.alignment = UIStackViewAlignmentFirstBaseline;
nameContainer.spacing = 4;
[self.scrollContents addArrangedSubview: nameContainer];
nameContainer.shouldGroupAccessibilityChildren = YES;
When I swipe, VoiceOver goes first to the UITextField (since it’s taller), and
then the UILabel. How can I change this?
David Dunham
Twitter: @radiofreelunch http://www.pensee.com/dunham/
_______________________________________________
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