S
S
shasm2017-11-02 01:40:25
iOS
shasm, 2017-11-02 01:40:25

How to make standard navigation between two view controllers without storyboard?

It is necessary that the standard navigation buttons work (Edit\Done)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
briahas, 2017-12-01
@briahas

I hope I understood the question correctly:
Create a screen to go to from a storyboard
1) let storyboad = UIStoryboard(name: storyboardName, bundle: nil)
let controller = storyboad.instantiateViewController(withIdentifier: storyboardName) as! MyViewController
Push/present it to the screen
2) navigationContoller.push(controller, animated:true)
or
currentVC.present(controller, animated:true)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question