Search code examples
iphoneiosipaduiinterfaceorientation

Device-specific orientation for universal app


I have a universal app. I want my app to work in both orientation modes in iPhone but in portrait mode only for iPad,

How can this be done?

setOrientationtion is not responding in iOS5.


Solution

  • Try the shouldAutorotateToInterfaceOrientation: method for ios5 and before.