CopyPastor

Detecting plagiarism made easy.

Score: 0.789399392577024; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2018-05-23
by PPL

Original Post

Original - Posted on 2010-05-04
by DyingCactus



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Set the **`contentHorizontalAlignment`**:
button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
alternatively you can adjust **`contentEdgeInsets`** like this,
button.contentEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0); //Whatever you want
Try it out and let me know in case of any queries.

Set the contentHorizontalAlignment:
emailBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
You might also want to adjust the content left inset otherwise the text will touch the left border:
emailBtn.contentEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0);

        
Present in both answers; Present only in the new answer; Present only in the old answer;