Believe in your own future, will thank yourself right now Sinner Yun

Sinner_Yun

放大Button热区的方法哟

1 //添加图片不能用backgroundimage
2 [btn setImage:image5 forState:0];
3 
4 //然后
5 btn.imageEdgeInsets = UIEdgeInsetsMake(20,20,20,20);
6 btn.titleEdgeInsets = UIEdgeInsetsMake(20,20,20,20);
7 
8 //然后OK了

 

posted on 2015-12-10 21:41  Sinner_Yun  阅读(475)  评论(0编辑  收藏  举报

导航