Breaking News
Home / iOS / iOS Snippets / How do you remove the default NavigationBar Button in iOS?

How do you remove the default NavigationBar Button in iOS?

Answer

Simply add the following code to viewDidLoad method as show below:

  1.     (void)viewDidLoad {
  2.         [super viewDidLoad];
  3.  
  4.         // hide it
  5.         self.navigationItem.hidesBackButton = YES;
  6.     }
[pb_builder]

Check Also

EKCalendar – That account does not allow calendars to be added or removed

Usecase When I am trying to create a new Calendar programmatically using the EventKit API …

Leave a Reply