布局button中图片与文字位置

[self.seeMoreButton setImage:[UIImage imageNamed:@"ChooseSKB_down"] forState:UIControlStateNormal];
[self.seeMoreButton setTitle:@"展开" forState:UIControlStateNormal];

[self.seeMoreButton setImageEdgeInsets:UIEdgeInsetsMake(0, -1, 0, 0)];
[self.seeMoreButton setTitleEdgeInsets:UIEdgeInsetsMake(0, 1, 0, 0)];

© 2017. All rights reserved.

Powered by Hydejack v7.5.0