Re: UITabBarItem selection Voice over speaks number apart from accessibility label,value
Re: UITabBarItem selection Voice over speaks number apart from accessibility label,value
- Subject: Re: UITabBarItem selection Voice over speaks number apart from accessibility label,value
- From: David Duncan <email@hidden>
- Date: Thu, 05 Apr 2018 09:32:14 -0700
Can you file a bug with a complete sample and report the bug# back to the list?
It isn’t immediately obvious to me where the numbers you report are coming
from, or why accessibility would speak them, but I can take a look once I have
a sample in front of me.
> On Apr 5, 2018, at 4:37 AM, Devarshi Kulshreshtha
> <email@hidden> wrote:
>
> I am programmatically assigning bar button items to UITabBar using below
> code:
>
> -(void)setupTabs {
> UIImage *icon1 = [[UIImage imageNamed:@"Icon1"]
> imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
> UITabBarItem *option1 = [[UITabBarItem alloc] initWithTitle:@"Option1"
> image: icon1 selectedImage: icon1];
>
> UIImage *icon2 = [[UIImage imageNamed:@"Icon2"]
> imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
> UITabBarItem *option2 = [[UITabBarItem alloc] initWithTitle:@"Option2"
> image: icon2 selectedImage: icon2];
>
> UIImage *icon3 = [[UIImage imageNamed:@"Icon3"]
> imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
> UITabBarItem *option3 = [[UITabBarItem alloc] initWithTitle:@"Option3"
> image: icon3 selectedImage: icon3];
>
> UIImage *icon4 = [[UIImage imageNamed:@"Icon4"]
> imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
> UITabBarItem *option4 = [[UITabBarItem alloc] initWithTitle:@"Option4"
> image: icon4 selectedImage: icon4];
>
> self.tabBar.items = @[option1, option2, option3, option4];
> }
>
> Problem is - when I am tapping on respective tab bar item after enabling
> Accessibility - Voice Over it is stating the tab bar title as well as
> number 104 for first tab, 204 for second tab and so on.
>
> I have tried explicitly setting the accessibilityValue, accessibilityLabel,
> etc for items but it is always speaking the number after title.
>
> Any ideas on how to stop voice over from speaking that number after title?
>
> Thanks
>
>
>
> --
> Thanks,
>
> Devarshi
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
--
David Duncan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden