@frozax wrote:
I have a game which supports portrait and landscape. I can switch from one and the other without issue when the game is running.
However, on iOS, when the orientation changes while the game is not in the foreground, the orientation is wrong when coming back to the game. The reproduction is as follow:
- Play the game in landscape
- Tap home and run the Messages application.
- While in the Mesages applications, go to portrait mode
- Go back in the game.
- Observer the problem.
I debugged a little, and discovered that the difference is that resizeFromLayer is not called (from layoutSubviews) when the issue happens.
Any one got an idea to fix it ?
Posts: 2
Participants: 2