I want the ViewController with the contents of the window to switch to another ViewController at the click of a button. But I can only open a new window.
Can be used:
[self presentViewControllerAsSheet:controllerNew]; But then another controller opens on top of the old one without closing. In addition, he has animation, but I do not need animation.
How to open ViewController in an existing ViewController?
In the iOS project, I do this:
[self.navigationController pushViewController:secondViewController animated:NO]; It’s also interesting what the animator in this function:
[self presentViewController:controllerNew animator: ]; Where to get it? And in general, what is it? Googled, googled, did not find examples.