1.解決偏移問題:
[objc] view plain copy
// 我的設(shè)備
[letButton setImage:[UIImage imageNamed:@"health_leftBtn"] forState:UIControlStateNormal];
[letButton setTitle:@"我的設(shè)備" forState:UIControlStateNormal];
letButton.titleLabel.font = [UIFont systemFontOfSize:10.0];
[letButton JQ_verticalCenterImageAndTitle:0];
<span style="color:#FF0000;">letButton.contentEdgeInsets = UIEdgeInsetsMake(0, -40,0, 0);
letButton.imageEdgeInsets = UIEdgeInsetsMake(0, -20,0, 0);</span>
[letButton JQ_verticalCenterImageAndTitle:3];
2.解決響應(yīng)事件的觸發(fā)范圍:
[objc] view plain copy
// 解決擴(kuò)大響應(yīng)范圍
[letButton setEnlargeEdgeWithTop:0 right:10 bottom:10 left:40];