how to disable a navigation bar button item in iOS

Try this

Recommended

self.navigationItem.leftBarButtonItem.enabled = NO;

self.navigationItem.rightBarButtonItem.enabled = NO;

Or Simply Disable by

on Edge case

self.view.window.userInteractionEnabled = NO;

Update:
Recently Apple doesn’t allow the back button to enable / disable. Instead of that we can hide it.

self.navigationItem.hidesBackButton = YES;

Leave a Comment