This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Handling iPad Orientation  RSS feed

 
Ankit Vyas
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!