Created your Search bar, when activated, the navigation bar becomes hiden. But as soon as I move to the next screen, it accordingly remains hidden, but it is necessary that it not be. Making it not hiden using controller methods: viewDidAppear and so on is not an option, since the nav bar will abruptly appear on the previous screen. This is how it looks as soon as I turn to the next screen.
http://i066.radikal.ru/1701/42/1a1d16e98816.png http://s018.radikal.ru/i504/1701/5b/c6f6dcefb21d.png
And you need to see the nav bar
http://s019.radikal.ru/i634/1701/95/4e49e9874220.png
Well, respectively, the reason for which all this was done (why did not use the standard eplovsky serch bar) - at the moment of swiping to the previous screen, the serch bar should be on the previous screen, and not climb over the current one, from which the transition is not yet complete.
That is, it appears hidden on the first screen, but not on the second. And all this at the same time. It should turn out approximately as in the Mail application:
http://s019.radikal.ru/i627/1701/80/fdf987c06034.jpg
In the photo application, it seems to me, at this moment on the last screen there is not a nav bar, but simply a UIView with buttons, but I’m not sure about it, and there may be more pleasant ways to solve this problem than drawing an extra view ..



