So, I'm trying to update text in UIButton when I click it. I use the following line to change the text:
calibrationButton.titleLabel.text = @"Calibration";
I checked that the text is changing, but when I start the application and I press the button, it changes to βCalibrationβ for a split second, and then returns to its default value. Any ideas why this might happen? Is there any update function that I need to call?
event-handling ios objective-c xcode uibutton
Julian Coltea Jul 10 2018-12-12T00: 00Z
source share