1.设置UIButton的文字居右显示

[button setContentHorizontalAlignment:UIControlContentHorizontalAlignmentRight];

 

2.去掉点击默认置灰效果

[button setAdjustsImageWhenHighlighted:NO];  // default is YES. if YES, image is drawn darker when highlighted(pressed)

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
相关资源
相似解决方案