调整button中的图片位置
self.leftBtn = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 80, 50)];
[self.leftBtn setImage:[UIImage imageNamed:@"go_there"] forState:UIControlStateNormal];
<span style="color:#ff0000;">[self.leftBtn setImageEdgeInsets:UIEdgeInsetsMake(4, 0, 4, 0)];//调整图片大小5:2</span>
调整title的位置
button.titleEdgeInsets = UIEdgeInsetsMake(<#CGFloat top#>, <#CGFloat left#>, <#CGFloat bottom#>, <#CGFloat right#>);