title: Centralise the title of UIButton as show in the Image Below Swift
body: <p>I want to show Button title like this </p>
  
  <p><img src="https://i.imgur.com/jCSj1IH.png" width="100" height="100"> </p>
  
  <p>but my output is comming like this even after centralising the title</p>
  
  <p><img src="https://i.imgur.com/2wEUwwN.png" width="100" height="100">
   frmbtn is the outlet of button And the Code I am Using for this is</p>
  
  <pre><code> frmbtn.setTitle("From Station\nSTN\nSTATION NAME", forState: UIControlState.Normal)
  
      frmbtn.titleLabel!.numberOfLines = 3
      frmbtn.contentHorizontalAlignment = UIControlContentHorizontalAlignment.Center
  </code></pre>
  
  <p>And Can we put different text sizes in the button title ? </p>