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 14:18:59 -0700
It sounds like a bug that it does not work the way you are trying to use it, but subclassing might be a usable alternative
On Aug 9, 2013, at 1:26 PM, Kam Dahlin <email@hidden> wrote:
>
> So the only way to change the accessibilityFrame is to subclass the cell?
>
> Thanks
>
> Kam
> On Aug 9, 2013, at 1:16 PM, Chris Fleizach <email@hidden> wrote:
>
>> Another idea is that you might try making a simple UItableViewCell subclass where you override accessibility frame.
>>
>> Sent from my iPhone
>>
>>> On Aug 9, 2013, at 12:47 PM, Kam Dahlin <email@hidden> wrote:
>>>
>>> Hi Chris,
>>>
>>> I have not had any success trying to change the accessibilityFrame of the cell. It was one of the first things I tried. No matter what I set it to, Voice Over ignores it and uses the cell's frame. I am configuring the cell's accessibility information in -tableView:cellForRowAtIndexPath: is that the wrong place?
>>>
>>> If I can't adjust the axFrame, Is there a way to retarget the activate gesture on the cell to trigger the button's action?
>>>
>>> Thanks
>>>
>>> Kam
>>>> On Aug 9, 2013, at 11:41 AM, Chris Fleizach <email@hidden> wrote:
>>>>
>>>>
>>>> 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