File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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!