The code:
[button titleLabel].text = @"I won't be changed";
The result is: the button shows always the text that is set up in the storyboard. If I delete the text in Storyboard, it will even disappear when I tap!
The solution is also simple:
[button setTitle:@"I will change" forState:UIControlStateNormal]
via StackOverflow
No comments:
Post a Comment