• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UITabBarItem selection Voice over speaks number apart from accessibility label,value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: UITabBarItem selection Voice over speaks number apart from accessibility label,value
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Avoiding link conflicts with a static library
  • Next by Date: Re: Avoiding link conflicts with a static library
  • Previous by thread: Re: Avoiding link conflicts with a static library
  • Next by thread: Re: UITabBarItem selection Voice over speaks number apart from accessibility label,value
  • Index(es):
    • Date
    • Thread