how to text align button title xcode
emailBtn.contentEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0);
// Swift 3 and up:
emailBtn.contentEdgeInsets = UIEdgeInsets(top: 0, left: 10, bottom: 0, right: 0);
3.75
4
emailBtn.contentHorizontalAlignment = .left;
Thank you!
4
0
Are there any code examples left?
New code examples in category Other