Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Badge does not appear on navigation item when reappeared #23

Open
manan280194 opened this issue May 13, 2016 · 0 comments
Open

Badge does not appear on navigation item when reappeared #23

manan280194 opened this issue May 13, 2016 · 0 comments

Comments

@manan280194
Copy link

I have a UINavigationItem which contains three UIBarButtonItem.

I have used UIBarButtonItem+Badge to show badge on the middle UIBarButtonItem. Which appears perfectly fine.

Scenario for the problem that occurs is listed below.

  1. Store rightBarButtonItems in an array in viewDidLoad method/
  2. Add UISearchBar on as navigation title view.
  3. Remove UISearchBar when the work is done.
  4. Show rightBarButtonItems from the array previously stored.
  5. Call function to display badge on the middle UIBarButtonItem
  6. At this point badge does not appear. If I do further navigation and come back to the view it still does not appear.

Help me here. Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant