//设置颜色
[changePhotoBtn setTitleColor:kBtnColor forState:UIControlStateNormal];
//设置大小
changePhotoBtn.titleLabel.font = [UIFont systemFontOfSize:16];
设置button字体颜色和大小
最新推荐文章于 2025-03-29 23:45:07 发布
//设置颜色
[changePhotoBtn setTitleColor:kBtnColor forState:UIControlStateNormal];
//设置大小
changePhotoBtn.titleLabel.font = [UIFont systemFontOfSize:16];