Change color behind app on rotation

后端 未结 4 1524
隐瞒了意图╮
隐瞒了意图╮ 2021-01-06 04:54

When an iOS app rotates it will reveal a black background when the app is between portrait and landscape. Is it possible to change this color from the default black to white

4条回答
  •  执念已碎
    2021-01-06 05:23

    I got the same issue. As I understand that you want to remove the black background. The easiest solution that I used is set you window clipsToBounds = true instead of your rootViewController.

    window?.clipsToBounds = true
    

提交回复
热议问题