Re: In-line language changes
Re: In-line language changes
- Subject: Re: In-line language changes
- From: Scott McCormack <email@hidden>
- Date: Tue, 04 Jun 2013 16:40:04 -0700
On Jun 4, 2013, at 12:29 PM, Chris Fleizach <email@hidden> wrote:
> I think you can do this
>
> [attributedString setAttributeValue:@YES forKey:@"accessibilityLanguage" withRange:range]
Ok first off the accessibilityLanguage setting needs a language not just a YES so here's what I tried:
NSMutableAttributedString *universalHello = [[NSMutableAttributedString alloc] initWithString:@"Hello Hola привет"];
NSDictionary *accRu = @{@"accessibilityLanguage": @"ru"};
[universalHello setAttributes:accRu range:NSMakeRange(11, 6)];
[self.inLineLabel setAttributedText:universalHello];
I did an nslog of my attributed string:
NSLog(@"%@",universalHello.description);
and this is what I got back:
Hello Hola {
}привет{
accessibilityLanguage = ru;
}
So it looks right but VO isn't picking up on the russian attribute and reading gibberish.
What am I missing?
_______________________________________________
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