game center showing in portrait mode when login fails

Hello,

My game is in landscape mode but when I click on game center button and if its not logged in my whole game is converting into portrait mode.Is there any solutions?

I found a solution. I set the Default Orinetation to Auto Rotation, and in the Allowed Orientations I only checked the Portrait (this was what I need only). Now when I rotate the phone when the GameCenter window is opened it rotates accoring to the phone state, but when I close it the game stays in portrait mode.