What's going on with my UIButtons in a xib?

前端 未结 1 1217
孤街浪徒
孤街浪徒 2021-01-16 09:40

I have a set of UIButtons (defined in a xib) who have labels that need to be updated periodically. In the ViewDidLoad method of the view controller of those buttons\' superv

相关标签:
1条回答
  • 2021-01-16 10:24

    You may need to use [setTitle: forState:] to set the button title for normal and highlighted (or selected) state.

    (And do make sure the button is connected to the outlet, as jtbandes points out).

    0 讨论(0)
提交回复
热议问题