1

I would like my app's rotation to be fixed as landscape...

I've done some research, but most posts are about detecting change,

and I couldn't find any about forcing one.

Could anyone help me?

Viraj
  • 1,880
  • 22
  • 31
CosmicRabbitMediaInc
  • 1,165
  • 4
  • 21
  • 32

2 Answers2

5

Try this

In plist change the Supported interface orientations to Lansdscape

OR

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); // home button on right
}

All the best

Warrior
  • 39,156
  • 44
  • 139
  • 214
1

You can change the info.plist of your project so that you app always shows Landscape initially.And then you can make your view controller's to support only landscape orientation.

hope this also helps

Only support for landscape Interface orientation

Launching application in landscape orientation for IPad

Community
  • 1
  • 1
visakh7
  • 26,380
  • 8
  • 55
  • 69