iphone - 仅更改 UIButton 上 UIFont 的大小

标签 iphone ipad

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

提前致谢。

最佳答案

UILabel* titleLabel = button.titleLabel;
titleLabel.font = [titleLabel.font fontWithSize:12345];

关于iphone - 仅更改 UIButton 上 UIFont 的大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2537954/

相关文章:

iphone - indentationLevelForRowAtIndexPath 不缩进自定义单元格

ios - 在 scrollViewDidZoom 中调整所有 subview 的大小

iphone - 我可以禁用 UIPageViewController 的页面边框手势识别器吗?并保留滑动的那一个?

iphone - MPMoviePlayerController 背景颜色不会粘住

iphone - CSS 导致页面无法在 iPad/iPhone 上显示

ios - 如何在 iOS 上用用户手指平滑 move UIView

iphone - UIImagePicker 和 AVCaptureSession 同时访问相机

iphone - 每次应用程序在 iphone 中启动时都想更改启动画面

iphone - iOS 7 结束点NavigationBar在viewController坐标中

iphone - 找不到符号 : _OBJC_CLASS_$_UIPopoverController