What I want is Portrait orientation for iPhone and Landscape orientation for iPad app.
My app is targeted for > ios5
I searched on web about this but got different answers but not the exact one.
So here is what I did
For iPhone
and for iPad
And for iPad controllers I added below code, this is not necessary for ios6 applications
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight ||
interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}