-1

I am trying to change default back button in IOS Swift to custom one. What I get is thatenter image description here

but should be that enter image description here

How can it be fixed people?

  • can you show the code you are using? – Jose Quintero Apr 21 '17 at 18:28
  • @JoseQuintero sure. I add this in appdelegate didfinishlaunchingwithoptions https://pastebin.com/NExMZkXh – Mighty Codder Apr 21 '17 at 18:47
  • The issue has to do with the image being stretched, take a look a this answer: http://stackoverflow.com/a/34646201/7852085 – Sasang Apr 21 '17 at 19:19
  • possible duplicate http://stackoverflow.com/questions/43546132/how-to-customize-the-navigation-back-symbol-and-navigation-back-text/43556837#43556837 – Joe Apr 26 '17 at 22:39

1 Answers1

0

In storyboard you can try using the "aspect fit" option or add aspect ratio to the button to make sure it has the correct scale according to the image.

DevB2F
  • 4,674
  • 4
  • 36
  • 60