0

I'm new to iOS app development and just started playing around with Xcode. I was wondering if the Navigation Controller is necessary? If what I'm creating doesn't require a back button or forward button, do I still need it? Or should I just hide it?

Thanks!

2
  • 1
    With due respect, you should read this Apple Documentation to know about UINavigationController and the cases where it should be used. This question is too broad to answer here. Commented Nov 4, 2015 at 4:03
  • You should use Single View Application if you don't need Navigation Controller. Commented Nov 4, 2015 at 6:57

4 Answers 4

1

try this code in viewDidLoad

  self.navigationController?.navigationBarHidden = true
Sign up to request clarification or add additional context in comments.

Comments

0

I was wondering if the Navigation Controller is necessary? If what I'm creating doesn't require a back button or forward button, do I still need it?

Definitely no. There is a dedicated "Single View Application" template in Xcode, that creates a navigation-less, tab-less app precisely for these kind of case.

Comments

0

If you doesn't require a back button or forward button then no need to navigation controller. You can hide navigation controller using..

self.navigationController.navigationBarHidden = YES;

Comments

0

If you want to navigate from one VC to another VC than only navigation is required else you can take simple VC no need to take navigation controller and mark your VC as initial VC

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.