I am facing an issue, When i run my app on iPhone SE simulator it shows back button on nav bar like this.
But when i run the same app on iPhone X, iPhone 8 and iPhone 8 plus iOS 11 and XCode 9 there is no back button on nav bar and its for all ViewControllers not for specific viewController. Here is the example
Can anyone tell why is this happening.
I had the issue where the back button was only a little bit. In the debugging console it was showing a few broken constraints in the navigation bar.
I found this line in the app delegate to be the issue.
UIBarButtonItem.appearance().setBackButtonTitlePositionAdjustment( // Remove the text "Back" from the back button so only the back arrow is visible
UIOffset(horizontal: -100, vertical:-100),
for: UIBarMetrics.default
)
try and find any appearance api calls in your code and see if you might be modifying the bar button offsets.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With