I tried this code:
navigationController?.navigationItem.backBarButtonItem?.title = ""
but it does not work and did not change anything. How can I set backButton text to empty?
I tried this code:
navigationController?.navigationItem.backBarButtonItem?.title = ""
but it does not work and did not change anything. How can I set backButton text to empty?
I tried this code for back button title. and it's work correctly
You have to change the previous controller's title, try doing so before the segue in the viewDidDisappear
You should use:
for see just < instead of < viewController
To remove the
backButtonItem
's title, place this line of code in theviewDidLoad:
of theView Controller
that thebackButtonItem
is in:or