Ans : I like to use storyboard.
I am using storyboard due to advantage over XIB : See here
Yes, we can use more than 1 storyboard. We can make different storyboard for different features in same project.
Navigating from one storyboard to another storyboard :
1. Using segue :
I am using storyboard due to advantage over XIB : See here
Yes, we can use more than 1 storyboard. We can make different storyboard for different features in same project.
Navigating from one storyboard to another storyboard :
1. Using segue :
- Drag & Drop storyboard reference
- Give name and assign viewcontroller (to which we want to navigate)
- Give segue from viewcontroller to storyboard reference.
2. Using coding :
var anotherStoryboard = UIStoryboard(name: "another", bundle: nil)
var vc: UIViewController = anotherStoryboard.instantiateViewController(withIdentifier: "loginView")
present(vc, animated: false)
No comments:
Post a Comment
Thanks