This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes iOS and the fly likes Handling iPad Orientation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Mobile » iOS
Bookmark "Handling iPad Orientation" Watch "Handling iPad Orientation" New topic

Handling iPad Orientation

Ankit Vyas

Joined: Aug 20, 2010
Posts: 3
Hi!I am working on Universal Build Project so i have to Handle iPad Orientation Manually so any body have any idea about it.
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 471

I know how to stop your view from rotating. First, in your info plist file, you'll have a "Supported interface orientations (iPad)" property. Set it to the orientation you want. Secondly, in your iPad controller, override the "shouldAutorotateToInterfaceOrientation" method, and make it return NO

Visit my blog:
I agree. Here's the link:
subject: Handling iPad Orientation
Similar Threads
It's not a secret anymore!