Quantcast
Channel: cocos2d-x - Cocos Forums
Viewing all articles
Browse latest Browse all 2748

Orientation issue with cocos2dx 3.17.2 iOS

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 2748

Trending Articles