UITabBarItem selection Voice over speaks number apart from accessibility label,value
UITabBarItem selection Voice over speaks number apart from accessibility label,value
- Subject: UITabBarItem selection Voice over speaks number apart from accessibility label,value
- From: Devarshi Kulshreshtha <email@hidden>
- Date: Thu, 05 Apr 2018 17:07:09 +0530
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