We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
swift code: self.navigationItem.rightBarButtonItem?.badgeValue = "\(count)"
self.navigationItem.rightBarButtonItem?.badgeValue = "\(count)"
First time it can be updaed immediately. When the value changed the view only be updated after a few seconds.
It updated after about 7 seconds in rootviewconroller. But it even doen't work in pushed viewcontroller when the value changed.
The text was updated successfully, but these errors were encountered:
My mistake, message reception is asynchronous communication.
DispatchQueue.main.async { [weak self]() -> Void in self?.navigationItem.leftBarButtonItem?.badgeValue = "\(count)" }
it's okay.
Sorry, something went wrong.
No branches or pull requests
swift code:
self.navigationItem.rightBarButtonItem?.badgeValue = "\(count)"
First time it can be updaed immediately. When the value changed the view only be updated after a few seconds.
It updated after about 7 seconds in rootviewconroller. But it even doen't work in pushed viewcontroller when the value changed.
The text was updated successfully, but these errors were encountered: