0

I need to hide backBarButton, so I am using

override func viewWillAppear(animated: Bool) {
    super.viewWillAppear(animated)
    self.navigationItem.setHidesBackButton(true, animated: false)
    self.navigationItem.backBarButtonItem?.title = ""
}

its okay on IOS 7 iPhone 4s, but on iPhone 6 iOS 8 this button doesn't hide, there is just "Back" title(without small arrow) and it is unusable. How I can hide it?

Pavel Zagorskyy
  • 443
  • 1
  • 4
  • 20

1 Answers1

0

select the navigation bar go to attribute inspector and remove the content of back button text box.

gkarya42
  • 429
  • 6
  • 22