Stroi
Stroi

Reputation: 1951

Navigation controller back button doesnt appear?

I'm trying to setup back button on the navigation controller but it doesn't appear when I run it. I watched some tutorials and it usually works.enter image description here

Upvotes: 1

Views: 5733

Answers (4)

Cookingcodes
Cookingcodes

Reputation: 23

Is MenuVc your main Controller? try this, delete that navigation controller in the middle. Then click the MenuVc, embed in Navigation Controller and set the navigation controller as initial view controller at the attribute inspector. then navigate the menuVC to Food, "Show".

Upvotes: 0

Pavankumar
Pavankumar

Reputation: 288

enter image description here

Go to navigation controller scene -> navigation controller ->navigation bar - then go to right top show attributes option and change bar tint color.Try it

Upvotes: 2

Punit
Punit

Reputation: 1340

Your flow should be:

NavigationController --> MainVC --> FoodVC

Now you can add button as follow:

Navigation Item -> Left Bar Button Items -> Bar Button Item -> back button

Upvotes: 3

Devang Tandel
Devang Tandel

Reputation: 3008

The view controller food is embedded in Navigation Controller , hence it is root view controller. Navigation bar will appear when any viewController is push on same navigation controller.

So, If you tableview is already in Navigationcontroller then remove Navigation Controller in which Your FoodVC Controller is embedded.

If you want that navigation controller, you may add leftBarButtonItem programatically.

Totally depends on your requirement.

Upvotes: 0

Related Questions