This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 467
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/
 
Consider Paul's rocket mass heater.
 
subject: Handling iPad Orientation
 
Similar Threads