user1285402
user1285402

Reputation: 163

how to display UITabBarController in swift

I have a UITableViewController in the detailViewController of the tableview I have a infoButton on the navigationBar onClick of that infoButton infoViewController displays . How do I get the navigation bar on infoViewController?

Upvotes: 1

Views: 50

Answers (2)

Khalid Afridi
Khalid Afridi

Reputation: 923

You have to use push so it will automatically be pushed to this current navigation stack. but if you try to present it then you will not get any navigation bar.

Upvotes: 0

Tushar Sharma
Tushar Sharma

Reputation: 2882

You just need to-: Embed navigation controller with first controller.And add segue connections

Upvotes: 1

Related Questions