OC 如果设计稿偏小或者偏大,UIButton 里面的image 怎样放大缩小?
走同样的路,发现不同的人生
I usually make some adjustments myself and then go through the design. The design feels almost good. Otherwise it’s called redesign
Use the edge property of UIButton to resize
[self.btn setImageEdgeInsets:UIEdgeInsetsMake(6, 6, 6, 6)];
I usually make some adjustments myself and then go through the design. The design feels almost good.
Otherwise it’s called redesign
Use the edge property of UIButton to resize
[self.btn setImageEdgeInsets:UIEdgeInsetsMake(6, 6, 6, 6)];