GameCenter authentication in landscape-only app throws UIApplicationInvalidInterfaceOrientation

前端 未结 5 1390
抹茶落季
抹茶落季 2020-11-29 06:38

Problem: If user is not logged into GameCenter account - GameCenter authentication view is launched in portrait mode (in ios 5 there were a modal dialog) asking to log in. B

5条回答
  •  攒了一身酷
    2020-11-29 07:01

    I have found that the problem is coming from the Game Center in my case. When in the simulator I do not have the Game Center initialized yet, it would like to pop up the login view, but in portrait mode. Once it is reaching this point it crashes if I disallowed portrait orientation. Strange bug in the OS as Game Center should take the allowed orientations only to be inline with our intention of landscape user interface.

    I do not have the solution yet, but I will post if I find it.

提交回复
热议问题