//设置颜色
[changePhotoBtn setTitleColor:kBtnColor forState:UIControlStateNormal];
//设置大小
changePhotoBtn.titleLabel.font = [UIFont systemFontOfSize:16];
设置button字体颜色和大小
最新推荐文章于 2024-02-09 03:54:47 发布
//设置颜色
[changePhotoBtn setTitleColor:kBtnColor forState:UIControlStateNormal];
//设置大小
changePhotoBtn.titleLabel.font = [UIFont systemFontOfSize:16];