0

Before iOS11, I use the runtime replaced the backBarButtonItem implementation change the default back button style, effects as follows, but on the iOS11 is invalid.

effect

I found that the structure of the back button below before iOS11

effect

But The structure of the back button on the iOS11 below

enter image description here

How can I get on iOS11 before implementation effect, which means backBarButtonItem without words?

Faysal Ahmed
  • 7,501
  • 5
  • 28
  • 50
BaQiWL
  • 417
  • 5
  • 14

2 Answers2

1

Try this:

self.navigationController?.navigationBar.topItem?.title = ""

wrire this code in viewDidLoad().

Its affected in NextViewController.

Deepak Tagadiya
  • 2,187
  • 15
  • 28
0

If you want only backButton without the words, try going through following steps:

  1. Embed your second ViewController to NavigationController too.
  2. Drag and Drop a UIBarButton icon to the NavigationBar of Second ViewController.
  3. Add the backbutton image to the UIBarButton.

It's Done!!

Hope it will help you.

Madhur
  • 1,056
  • 9
  • 14