I am trying to remove the title of the backBarButtonItem
which has the title of the previous ViewController
. This is what I am getting now.
I am trying to make it like this.
I am trying to remove the title of the backBarButtonItem
which has the title of the previous ViewController
. This is what I am getting now.
I am trying to make it like this.
From your First
viewController call:
self.navigationItem.backBarButtonItem = UIBarButtonItem(title:"", style: .plain, target: nil, action: nil)
This will work for you. You can try -
self.navigationItem.backBarButtonItem?.title = ""