The main view of the application does not change to fill the screen when the device is rotated

I recently ran into a problem with my application when changing the orientation of the device.

This is my main ViewController (let it be called VC1) in portrait mode:

enter image description here

Now, if you click / submit any view manager (let this VC2), rotate the screen during VC2 and return to the previous view (VC1), this is what I get:

enter image description here

Why is VC1 not spinning properly as it should? This problem occurs throughout the application and with any two views. I honestly have no idea what could be causing this or where to look, so any help would be appreciated.

+4
2

? screeen, ? ,

0

. , . .

-1

Source: https://habr.com/ru/post/1659549/


All Articles