titleedgeinsets专题

iOS之UIButton的titleEdgeInsets和imageEdgeInsets属性按钮UIButton的常用属性及方法总结(三)

常见设置:https://www.jianshu.com/p/d23a8234729c 1.文字左边图片右边: // button标题的偏移量  btn.titleEdgeInsets = UIEdgeInsetsMake(0, -btn.imageView.bounds.size.width+2, 0, self.locationBtn.imageView.bounds.size.width