Meaningless Drivel is fun!*
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
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/
 
 
subject: Handling iPad Orientation
 
Similar Threads