How do I disable the backbutton in a navigationcontroller?
When I hide the button like so,
self.navigationItem.hidesBackButton = TRUE;
the buttonarea is still tappable.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you don’t need a back button and since part of navigationBar’s existence is to have a back button you can simply hide the navBar. I can post the code to that if you want as Im doing that in couple of projects. Otherwise have your “bug” might not be a bug if you are calling it from the wrong place.
After digging i managed to come up with this.
To hide the back button use:
To hide the whole navigationBar use:
But this will happen without animation, to animate it use this instead:
This will make a sliding animation together with the navigation view. You will need to provide some other means for the person to get back tho.