UIButton的自定义字体标题 [英] Custom font title for UIButton

查看:202
本文介绍了UIButton的自定义字体标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让自定义字体成为按钮的标题。

Is there a way to have custom fonts to the title of a button.

推荐答案

UIButton 类公开了一个 titleLabel 属性,您可以在其上更改字体,文本颜色等内容。

The UIButton class exposes a titleLabel property, upon which you can change things like the font, the text color, etc.

这篇关于UIButton的自定义字体标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆