Use the AVPictureInPictureController caused the UI disorder

My app supports only iPhone mode, and when it runs on an iPad device, it normally displays compatible iPhone mode.

But my code as long as you use the AVPictureInPictureController, open the picture in picture, will lead to get [UIScreen mainScreen] bounds became the real width and height, so the UI disorder;

How should my application be compatible with this?

Hello @jiehaowu, thank you for your post. Are you able to demonstrate the issue in a test project created from one of Xcode's templates, and using only Apple APIs?

You can find tips on creating and sharing a test project in Creating a Test Project.

Use the AVPictureInPictureController caused the UI disorder
 
 
Q