1.高亮的时候不去自动调整图标,也就是图标和文字在一起,图标不能点
title. adjustsImageWhenHighlighted =No
2.重写button
-(CGRect)imageRectForContentRect:(CGRect)contentRect
{
return CGRectMake()确定按钮中图片的位置
}
-(CGRect)titleRectForContentRect:(CGRect)contentRect
3.按钮的边距
che.contentEdgeInsets =文字四周的间距
che.imageEdgeInsets =
che.titletEdgeInsets =UIEdgeInsetsMake()