设置contentHorizontalAlignment

button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;

button.titleEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0);

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-05-11
  • 2021-08-26
  • 2021-09-07
  • 2022-02-21
相关资源
相似解决方案