Replies: 2 comments
-
So - you've created a counter, and you've created a button - but you've done nothing to connect the counter to the button. When you pass |
Beta Was this translation helpful? Give feedback.
0 replies
-
thank you. That was all I needed to do.
…Sent from my iPhone
On Feb 20, 2022, at 5:39 PM, Russell Keith-Magee ***@***.***> wrote:
So - you've created a counter, and you've created a button - but you've done nothing to connect the counter to the button.
When you pass count to the label, it's not a "live" updating value - it's a once off "set the label to this text". If you want the label to be updated, you need to modify the button handlers to update the value of the label (with input_count.text = count) every time the value changes.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a simple counter. There is a button to increase the counter, a button to decrease the counter and a buton to reset the counter to 0. I have a label that shows the curent count; However, the count is not updated when I push the buttons. How do I get the label to update? The code is below:
Beta Was this translation helpful? Give feedback.
All reactions