【问题标题】:Changing only the size of a UIFont on a UIButton仅更改 UIButton 上 UIFont 的大小
【发布时间】:2010-03-29 12:52:33
【问题描述】:

仅更改 UIButton 上现有字体大小的最快/最简单方法是什么? (pointSize 是只读的)

提前致谢。

【问题讨论】:

    标签: iphone ipad


    【解决方案1】:
    UILabel* titleLabel = button.titleLabel;
    titleLabel.font = [titleLabel.font fontWithSize:12345];
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-23
      • 1970-01-01
      • 1970-01-01
      • 2016-08-24
      相关资源
      最近更新 更多