Re: iOS custom text view makes "bonk" sound on keyboard input
Re: iOS custom text view makes "bonk" sound on keyboard input
- Subject: Re: iOS custom text view makes "bonk" sound on keyboard input
- From: Doug Russell <email@hidden>
- Date: Fri, 22 Jun 2012 15:31:20 -0700
The accessibility that Jake is referring to is based off this fork:
https://github.com/rustle/OmniGroup/blob/master/Frameworks/OmniUI/iPad/OUIEditableFrame.m
which I guess hasn't made it into the public trunk yet.
On Jun 22, 2012, at 3:23 PM, Dave Hayden wrote:
> On Jun 22, 2012, at 12:11 PM, Jake Carter wrote:
>
>> I work at Omni Group. We have a custom text input for rich text and I haven't experienced the problems you're talking about. I didn't write any of our text code so I can't really help you out directly, but it's open source so maybe you can gleam some insight from it...?
>
> Ah, great idea! This won't be the first time I've compared our code against OUIEditableFrame to figure out what we're doing wrong. :)
>
> …Oh, but OUIEditableFrame doesn't implement accessibility. Dag. But if I add a dummy implementation there I also get the bonk. (And if I take out accessibility from our code, the bonk goes away.) So it looks like the problem isn't something we're doing wrong in our UITextInput code.
>
> <two hours of trial and error>
>
> Okay, got it! It bonks when accessibilityValue is empty. The docs say "Use the value property only when an accessibility element can have a value that is not represented by its label," so we were setting the accessibilityLabel to the text in each line and leaving the value empty. Switching from label to value stops the bonk.
>
> Phew.
>
> Many thanks for the help!
> -Dave
>
>
> _______________________________________________
> 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