Set UIButton title UILabel font size programmatically

前端 未结 18 3109
灰色年华
灰色年华 2020-12-07 07:16

I need to set the font size of the title UILabel of a UIButton programmatically.

18条回答
  •  被撕碎了的回忆
    2020-12-07 07:51

    you can also customise button font with bold, italic. this example with bold system font size.

    [LoginButton.titleLabel setFont:[UIFont boldSystemFontOfSize:15.0f*Ratio]];
    

提交回复
热议问题