Re: Accessibility in the Beta Forums?
Re: Accessibility in the Beta Forums?
- Subject: Re: Accessibility in the Beta Forums?
- From: Chris Fleizach <email@hidden>
- Date: Tue, 16 Aug 2011 06:56:22 -0700
It looks like the info button is within the boundaries of the touch view, is it not?
The way direct touch works is that it does not examine what's underneath the finger... that would actually be too slow and defeat direct touch
Instead it sees initially when a new screen appears if there are direct touch areas and then passes events directly through in that region.
I would make the direct touch region slight smaller or place the info button outside the region in these cases. Feel free to file an enhancement request to support this scenario
On Aug 15, 2011, at 2:45 PM, Alexander von Below wrote:
> Gladly, this is the core of the problem:
>
> - (void)loadView
> {
> CGRect frame = [UIScreen mainScreen].applicationFrame;
> UIView *baseView = [[UIView alloc] initWithFrame:frame];
> baseView.backgroundColor = [UIColor redColor];
> CGRect letterRect = baseView.bounds;
> letterRect.origin.y += 40;
> letterRect.size.height -= 40;
>
> TouchableView *letterView = [[TouchableView alloc] initWithFrame:letterRect];
> letterView.accessibilityTraits = UIAccessibilityTraitAllowsDirectInteraction;
> letterView.accessibilityLabel = NSLocalizedString(@"Letter entry", @"a11y label for the letter view");
> letterView.accessibilityHint = @"";
> letterView.userInteractionEnabled = YES;
> [baseView addSubview:letterView];
> self.view = baseView;
>
> UIButton *infoButton = [UIButton buttonWithType:UIButtonTypeInfoDark];
> [infoButton addTarget:self action:@selector(showInfo) forControlEvents:UIControlEventTouchUpInside];
> infoButton.center = CGPointMake(20, 20);
> infoButton.accessibilityLabel = NSLocalizedString (@"Settings", @"");
> [self.view addSubview:infoButton];
> }
>
> The "TouchableView" uses direct interaction, in the sample it reacts to a single touch. My expectation would be, that the infoButton reacts as it normally would with voiceover: A first tap speaks the button, another double-tap causes an action. But the actual result is that the button highlights when touched, but nothing else happens
>
> A working sample can be found here: https://files.me.com/below/w4vo2t
>
> Thanks
>
> Alex
>
>
> Am 15.08.2011 um 23:33 schrieb Chris Fleizach:
>
>>
>> Can you be more specific with either images or code?
>>
>> On Aug 15, 2011, at 1:34 PM, Alexander von Below wrote:
>>
>>> Thanks!
>>>
>>> I am using a view with the trait UIAccessibilityTraitAllowsDirectInteraction to allow single clicks on it. In the hierarchy above that view is a normal button.
>>>
>>> When I press the button (voiceover on, of course), the button lights up, but does not activate. When I do not set the UIAccessibilityTraitAllowsDirectInteraction, the behavior returns to what I would expect.
>>>
>>> Is this the expected behavior when using UIAccessibilityTraitAllowsDirectInteraction ? I will be glad to provide a sample of what I mean.
>>>
>>> Thanks
>>>
>>> Alex
>>>
>>> Am 15.08.2011 um 02:21 schrieb Chris Fleizach:
>>>
>>>> Just post your question to this list
>>>>
>>>> On Aug 14, 2011, at 3:55 PM, Alexander von Below wrote:
>>>>
>>>>> Hello List,
>>>>>
>>>>> are you active on the iOS 5 Beta forums over at devforums.apple.com ? If so, what would you consider the best section to post accessibility questions? Application Frameworks, Input?
>>>>>
>>>>> Thanks a lot
>>>>>
>>>>> Alex
>>>>> _______________________________________________
>>>>> 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