Re: Voice Over selection of only the accessory view of a UITableViewCell?
Re: Voice Over selection of only the accessory view of a UITableViewCell?
- Subject: Re: Voice Over selection of only the accessory view of a UITableViewCell?
- From: Chris Fleizach <email@hidden>
- Date: Fri, 09 Aug 2013 11:41:23 -0700
Maybe an easier way would be to make the tableViewCell an isAccessibilityElement = YES and then make the label and traits be the same as the custom button.
You could even override the axFrame of the tableViewCell to be the same axFrame as the custom button
On Aug 9, 2013, at 11:24 AM, Kam Dahlin <email@hidden> wrote:
> Hello,
>
> I have a UITableViewCell with a custom button in its accessoryView. The cell has its textLabel set, but the label and the cell really are not relevant to Voice Over users and I would like to find a way to make only the custom button accessible. Right now, Voice Over will select the full cell, and read the text field. If I swipe right, or manually select the button, I can interact with it. I have tried making sure the cell is not accessible, and that the textLabel is not accessible, but setting those properties don't seem to have an effect on what Voice Over selects and reads. I have also tried setting the accessibilityLabel of the cell and text field to be nil, but that also doesn't work.
>
> Do I have to subclass the cell and override the UIAccessibilityContainer protocol on the cell to get the behavior I want? Am I missing something? Any help will be much appreciated.
>
> Regards,
>
> Kam
> _______________________________________________
> 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
_______________________________________________
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