Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 9    Views: 57

MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
12/07/12 08:09 AM (13 years ago)

Prevent Portrait position on ipad

hey guys, is there a way to prevent the ipad from roating to portrait position? I want the app to only be viewed in landscape? Thanks. Miguel
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
12/07/12 08:25 AM (13 years ago)
Hey buddy. Let's talk about the last 16! Seriously though. Something tells me Apple will not let you. You could do a cheeky update after it is live though. Happy Friday!
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
12/07/12 09:14 AM (13 years ago)
Yep, I had to do it the other day. http://www.snurlz.com/2012/12/03/set-orientation-ipad-landscape-in-bt-for-ios6/ Bc my memory is so bad, i had to create this webiste for my tid bits and of course others if needed. the age the age :) @MacApple -- so apple prohibits it all together? i have an app in review now that is only landscape. i hope it will be ok!
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
12/07/12 09:24 AM (13 years ago)
I could be wrong. You can use the rotation lock though.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
12/07/12 09:27 AM (13 years ago)
Yeah I just realized, my app had been approved yesterday that prevents portrait rotation. The app is locked to landscape only. So Miguel that should help you.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
12/07/12 09:35 AM (13 years ago)
There you go. Friday is for learning. Some iPhone apps I've done I've locked them but tend to try and allow rotation on iPad. Oh well.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
12/07/12 09:46 AM (13 years ago)
Hey.... Finale 16 ha ha ha.... Benfica had it coming, Barcelona gave us everything, we missed like 7/8 made goals.... Ridiculous. First half seemed like we were playing against a end half of the table team... I have all my apps just for portrait, never had a problem. It's hard to have an image as background andar it look good both ways. How do you do it?
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
12/07/12 09:54 AM (13 years ago)
Ones that I've done have always just had high def background images of say grass, a brick wall and so on. Not photographs as such. You guys should have taken Barcelona, watched the highlights.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
12/07/12 12:00 PM (13 years ago)
In this case Im using stobe's ipad book plugin, so its a book with pictures so its landscape pictures, not portrait. Ya, we should have.... :( Our lose your gain... At least that, Go Celtic. We have better chances in Europe League anyway.. Cheers.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
12/07/12 12:12 PM (13 years ago)
This code will work in that case. I used the same and it works Landscape only // UNCOMMENT THIS TO SUPPORT iOS 6 SCREEN ROTATAIONS mask |= UIInterfaceOrientationMaskLandscape; if(canRotate){ mask |= UIInterfaceOrientationMaskLandscapeLeft; mask |= UIInterfaceOrientationMaskLandscapeRight; }
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.