1 /**
 2  *  用来自定义imageView的尺寸和位置 (contentRect等于按钮的bounds)
 3  */
 4 - (CGRect)imageRectForContentRect:(CGRect)contentRect {
 5     return CGRectMake((contentRect.size.width - 40) * 0.5, 23, 40, 46);
 6 }
 7 
 8 /**
 9  *  重写此方法后(不写代码),点击后就没有highlight的效果
10  */
11 -(void)setHighlighted:(BOOL)highlighted{
12     
13 }