UINavigationController and adding a badge to rightBarButtonItem
-
22-09-2019 - |
Question
How can I add a numeric badge to the rightBarButtonItem of a UINavigationController? I saw the same in some shopping cart applications.
thanks in advance,
Solution
You'll have to do this manually (ie, create a view that draws the badge and number in). There's no API to set a badge value on a UINavigationBar.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow