N
N
nastya_zholudeva2018-06-12 18:53:47
Swift
nastya_zholudeva, 2018-06-12 18:53:47

How to make navigation bar not disappear on segue?

5b1fec81658e3348748532.png
by clicking on "Register" the transition to the next page occurs with the help of segue, but for some reason the Navigation Bar is not visible. Moreover, if you comment out all the code that concerns the UIView, then it is visible.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
doublench21, 2018-06-12
@doublench21

Here in the next page controller write this:

override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)

        navigationController?.setNavigationBarHidden(false, animated: false)
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question