Question

I've got a problem with the latest version of xCode. Whenever i create a new Single view application and I deploy this to my iPhone 3GS, it won't rotate the app (to landscape). When I deploy the exact same version to my iPhone 4, it does rotate the app (to landscape). I've tried installing other apps on the 3GS, and those apps rotate just fine. Also older apps that we've developed are rotating just fine on the 3GS.

I just select create new project in xCode and directly deploy it to the test phones (without any code modifications, just changed the iOS deployment target to 5.0 and the Deployment target too (to 5.0)).

The iPhone 3GS runs version 5.1.1, the iPhone 4 runs on 6.0.1. My xCode version is 4.5

Has anybody experienced this problem before, and knows how to fix it?

Était-ce utile?

La solution

Do you mean that you changed the Base SDK to iOS 6.0? I've had the same issue when I did just that. In iOS 6, auto rotation has changed and method shouldAutorotateToInterfaceOrientation is deprecated. See this post for details about this change: shouldAutorotateToInterfaceOrientation not being called in iOS 6

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top