This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » iOS
Bookmark "Handling iPad Orientation" Watch "Handling iPad Orientation" New topic
Author

Handling iPad Orientation

Ankit Vyas
Greenhorn

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: 460
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: http://jnassef.blogspot.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Handling iPad Orientation
 
Similar Threads
iPad
ipad 3g
iPad