Is it possible to adjust the x,y position for the titleLabel of a UIButton?
titleLabel
UIButton
Here is my code:
UIButton *btn = [UIButton but
For my projects I've this extension utility:
extension UIButton { func moveTitle(horizontal hOffset: CGFloat, vertical vOffset: CGFloat) { self.titleEdgeInsets.left += hOffset self.titleEdgeInsets.top += vOffset } }