How to disable the back button in the iPhone app

In my project, when we select the item element, I show the details in the following controllers, but I get the details using Libxml, I have to disable the button when I load the page, how is it possible, please help me

thank

+3
source share
2 answers
self.navigationItem.hidesBackButton = YES;

When you finish the download,

[self.navigationItem setHidesBackButton:NO animated:YES];
+11
source

you can use something like this

[self.navigationController setNavigationBarHidden:YES animated:YES];

when you start downloading data and don’t install it when downloading your data.

Or you can add this code to the viewcontrolers section of viewWillAppear, and then show the navigation bar again after loading the view.

+1

Source: https://habr.com/ru/post/1750986/


All Articles