UIButton of type UIButtonTypeCustom will not display Title (iPhone)

后端 未结 5 1692
栀梦
栀梦 2020-12-08 09:21

I must have overlooked something completely obvious?? but my button displays its image and size correctly, but I simply can\'t get the Title to show up.

I did a real

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-08 10:06

    I just hab spome quite similar problem... Just set the title color, I guess the current one is white ;)

    [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];

提交回复
热议问题