Q:

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);
0
emailBtn.contentHorizontalAlignment = .left;
0

New to Communities?

Join the community