How to add a badge to the system generated "More" UITabBarItem
Posted
by Mark Hoffman
on Stack Overflow
See other posts from Stack Overflow
or by Mark Hoffman
Published on 2010-03-05T14:31:59Z
Indexed on
2010/03/16
19:11 UTC
Read the original article
Hit count: 536
My app has 6 menu items, so the OS shows the first 4, then shows a "More" item that links to a screen where the user can select the other two.
My problem is that I want to show a badge on the More item so that the user knows that one of the menu items that is hidden needs their attention. (It's clear to our users which hidden item the badge represents since one of the hidden items is Settings and the other is current Uploads)
I don't know how to access the "More" item since the "items" array on UITabBar only contains the 6 actual UITabBarItems that I've created; it doesn't include the system generated "More" item. I've tried setting the badge on one of the hidden UITabBarItems, but no badge is ever displayed.
I didn't find much on Google, which makes me wonder if I'm going about this completely wrong. The iTunes app does the same thing when you download items. They display a More item and attach a badge to it, so I figured I was in good company, but I'll be damned if I see how they did that. (Unless they manually created a UITabBarSystemItemMore item and manually handled displaying the other menu items. Ugh.)
© Stack Overflow or respective owner