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

前端 未结 1 1229
孤街浪徒
孤街浪徒 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)
提交回复
热议问题