WepsTech
The world of development
The world of development
Hello Guys, Welcome to this tutorial. I hope you are doing well. Here once again I came with a new wonderful trick. Which is as How to use a navigation controller in iOS swift. In this tutorial, I will make you understand the navigation controller. And also I will tell you about how you can use the navigation controller in iOS with swift language.
At the very first, I will make you understand about navigation controller. The procedure of open one controller to another controller and come back to the same view controller, This procedure can happen with the help of the navigation controller. You have to create one project if you are working from the beginning. If you are not working from the beginning then you can start as usual. Below I am writing few steps to achieve the first task for the navigation controller.
With the help of the above procedure, you can open another controller without the button click. But if you want to open the controller with the help of a button click then write the below code on the button click.
@IBAction func open(_ sender: Any) { let storyboard = UIStoryboard(name: "Main", bundle: nil) let vc = storyboard.instantiateViewController(withIdentifier: "DetailController") as! DetailController self.navigationController?.pushViewController(vc,animated: true) }
😊😊😊
Wonderful, Great, In Conclusion You have done with the main task. If you are still facing any issue related with this then watch this video 😎😎😎. If you are looking for more topic then below are the links.