cjt5132

1、按钮的内边距

 

    // 设置按钮图片内边距

    checkboxButton.imageEdgeInsets = UIEdgeInsetsMake(0, 0, 0, 10);

    //设置按钮文字的内边距

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

    // 设置按钮整体内容的内边距

    checkboxButton.contentEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 10);

 

分类:

技术点:

相关文章:

  • 2021-10-26
  • 2021-12-04
  • 2021-12-04
  • 2021-06-13
  • 2021-07-01
  • 2021-12-04
  • 2021-12-09
  • 2021-09-20
猜你喜欢
  • 2021-12-14
  • 2021-11-07
  • 2021-12-04
  • 2021-11-17
  • 2021-12-04
  • 2021-12-04
  • 2021-10-16
相关资源
相似解决方案