Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide Navigation Controller's UI. [duplicate]

I am making an App in iOS and it is using a segue that requires a navigation controller.

After the segue takes place I do not want the navigation controller to show.

In other words, I do not want there to be a back button. How do I do this?

like image 281
msweet168 Avatar asked Oct 01 '22 01:10

msweet168


1 Answers

You can use this for hiding navigation controller from any particular view controller,

[self.navigationController setNavigationBarHidden:YES];
self.navigationItem.hidesBackButton = YES; //for hiding back button
like image 135
Gajendra Rawat Avatar answered Oct 13 '22 12:10

Gajendra Rawat