Abhinav
Abhinav

Reputation: 38162

Supporting auto rotation on iPhone views

To support auto-rotation on all views, what should one do?

Upvotes: 1

Views: 3120

Answers (2)

ipraba
ipraba

Reputation: 16553

See this tutorial. This helped me a lot in understanding the Autorotation and Autosizing Options.

http://www.bogotobogo.com/XcodeSDK-Chapter4.html

Upvotes: 2

Rayfleck
Rayfleck

Reputation: 12106

Put this in all of your view controllers.

  - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
      return YES;
  }

Upvotes: 0

Related Questions