我需要以编程方式设置 UIButton 的标题 UILabel 的字体大小。
UIButton
UILabel
最佳答案
button.titleLabel.font = [UIFont systemFontOfSize:size];
应该有帮助
https://stackoverflow.com/questions/1465305/
相关文章:
ios - 核心数据 : Quickest way to delete all instances
ios - 创建模糊叠加 View
ios - iPad 多任务支持需要这些方向
iphone - 您在编写 Objective-C 和 Cocoa 时使用了哪些最佳实践?
objective-c - 如何纯粹用 C 编写 iOS 应用程序
iphone - 如何在 UIView 下绘制阴影?
objective-c - 在 Objective-C 中为类定义私有(private)方法的最佳方
objective-c - 如果您使用 CocoaPods,您的 .gitignore 会包含什么内
ios - Objective-C ARC : strong vs retain and weak
iphone - 按下时 UILongPressGestureRecognizer 被调用两次