1、按钮的内边距
// 设置按钮图片内边距
checkboxButton.imageEdgeInsets = UIEdgeInsetsMake(0, 0, 0, 10);
//设置按钮文字的内边距
checkboxButton.titleEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0);
// 设置按钮整体内容的内边距
checkboxButton.contentEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 10);
时间: 2024-11-04 17:02:12