UIButton上使用UIEdgeInsetsMaketitle跟图片对齐
默认情况下,不设置的效果,都使居中现实,button为150*150
[self setTitleEdgeInsets:UIEdgeInsetsMake( -80.0,-backGroundImag.size.width, 0.0,0.0)];
[self setImageEdgeInsets:UIEdgeInsetsMake(0.0, 0.0,0.0, -self.titleLabel.bounds.size.width)];
over!
摘自 Annie的专栏
补充:移动开发 , IOS ,