In app purchase Alert Box orientation changes to portrait when app resumed

后端 未结 1 1615
感情败类
感情败类 2021-01-16 14:20

I am having a weird problem. My game is all landscape. I have a inapp purchase button in my app. When I tap on that button I see the normal alert button in landscape mode. B

相关标签:
1条回答
  • 2021-01-16 15:13

    This worked for me:

        [[UIApplication sharedApplication] setStatusBarOrientation:[UIDevice currentDevice].orientation animated:NO];
    

    It appears these alert views orient themselves based on the status bar (whether status bar is visible or not)

    0 讨论(0)
提交回复
热议问题