How to hide the ‘Back’ button on the iOS/iPadOS App.

You want to hide this ‘Back’ button when you transition from one screen to the next, probably the detail view screen, where Xcode automatically puts this for you without asking if you want it.

You can copy the below code to your ‘viewDidLoad’ method in your respective file:

Objective-C Code:

[self.navigationItem setHidesBackButton:YES animated: YES];

Swift Code:

self.navigationItem.setHidesBackButton(true, animated: true);

Hope it helps,

Thanks & Regards
Mandar Apte

Published by Mandar Apte

Mandar is a Mumbai-based multi-disciplinary designer with UX/UI, Logo, Symbol, and Brand Identity design expertise. He currently runs his Mudrkashar Linguistic Apple iPhone, iPad, and Mac app business in the heart of Mumbai city.

Leave a comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.