-1

Is there a possibility to add the backbutton-image from UINavigationViewControllers to own (custom) buttons?

Custom Button without Image Image I want to add

Is there a simple solution?

user2531284
  • 184
  • 1
  • 13
  • 2
    Possible duplicate of [Creating a left-arrow button (like UINavigationBar's "back" style) on a UIToolbar](https://stackoverflow.com/questions/227078/creating-a-left-arrow-button-like-uinavigationbars-back-style-on-a-uitoolba) – Tamás Sengel Sep 28 '18 at 13:25
  • this one uses a back-button-image from 5 years ago, there should be a better way now – user2531284 Sep 28 '18 at 16:03

1 Answers1

0
self.navigationController?.navigationBar.backIndicatorImage = UIImage.init(named: "backImage")
self.navigationController?.navigationBar.backIndicatorTransitionMaskImage = UIImage.init(named: "backImage")
Hasti Ranjkesh
  • 643
  • 10
  • 26