accessibilityLanguage in section headers of grouped table view
accessibilityLanguage in section headers of grouped table view
- Subject: accessibilityLanguage in section headers of grouped table view
- From: Matthias Schmitt <email@hidden>
- Date: Thu, 10 May 2012 16:41:22 +0200
Hello,
On 09.05.2012, at 21:10, Ortwin Gentz wrote:
> I encountered a similar issue when setting the accessibilityLangunge for subviews of a tableView section header view. In this case, the language isn't honored by VO for the accessibilityLabel.
>
> Ortwin
Yes, I made the same experience. This did not work for me too. I tried the following workaround, which did not work. I am creating a totally new view in form of a UILabel to replace the section header view. Then I mark this view to be spoken with a different language. The new view is displayed, but still spoken with the system language.
- (void)setVoLanguage:(NSObject*)object
{
if (prefLanguage == 0){
[object setAccessibilityLanguage:@"de-DE"];
} else {
[object setAccessibilityLanguage:@"fr-FR"];
}
}
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
UILabel *label = [[[UILabel alloc] initWithFrame:CGRectMake(0.0, 0.0, tableView.bounds.size.width, 30.0)] autorelease];
label.text = @"Dies ist ein deutscher Test Text";
[appDelegate setVoLanguage:label];
return label;
}
It seems to me, that VoiceOver always uses the system language for speaking table section header labels.
Best regards
Matthias Schmitt
magic moving pixel s.a.
23, Avenue Grande-Duchesse Charlotte
L-3441 Dudelange
Luxembourg
Phone: +352 54 75 75 - 0
http://www.mmp.lu
_______________________________________________
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