I know that there are other posts about this topic on this forum but none of them work for me.
Problem: My app needs to support portrait and landscape. I added a applicationScreenSizeChanged in AppDelegate and it works fine in Android. However, in iOS, I get a black bar on one side, with the actual scene getting compressed in one direction and stretched in the other. Therefore, I am wondering what’s the proper way to support portrait and landscape modes for iOS.
I’ve never had a need for game to support both, so I would think that you would also need to work with RootViewController also. Perhaps some threads at Apple might help: https://developer.apple.com/forums/thread/115769
I thought that it might be something to do with RootViewController as well but I’m not sure what. One thing that I did notice is that although the scene is displaying incorrectly the underlying coordinates are still correct. i.e Pressing a button at the location that it’s supposed to be in will trigger it whereas trying to press the button where it is displaying on the screen will not do anything.