[button setContentHorizontalAlignment:UIControlContentHorizontalAlignmentLeft];
[button setImageEdgeInsets:UIEdgeInsetsMake(0, 8, 0, 0)];//上左下右
[button setContentHorizontalAlignment:UIControlContentHorizontalAlignmentLeft];
[button setImageEdgeInsets:UIEdgeInsetsMake(0, 8, 0, 0)];//上左下右
本文标题:iOS开发 两句代码搞定按钮中图片偏移量
本文链接:https://www.haomeiwen.com/subject/ryturrtx.html
网友评论