benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
06/04/14 02:27 AM (9 years ago)

Screen Rotation

Is it possible to not allow screen rotation for any screen?
 
kingelessar
Lost but trying
Profile
Posts: 155
Reg: Mar 10, 2014
UK
6,500
like
06/04/14 09:02 AM (9 years ago)
Sure. iOS? Android?
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
06/04/14 10:50 AM (9 years ago)
both
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
06/04/14 04:32 PM (9 years ago)
on android i fixed it adding: android:screenOrientation="portrait" to the manifest in every activity, for iOS didn't try yet. Any Advice?
 
kingelessar
Lost but trying
Profile
Posts: 155
Reg: Mar 10, 2014
UK
6,500
like
06/04/14 10:25 PM (9 years ago)
In Xcode, have a look at Targets > General > Deployment Info If you set it to Portrait and if it's also set to be for iPhones only, then that should work. But if it's set to also run on iPads, it might not. In that case, try what someone else has shared on the forum (I've not tried): In the file "YourApp_appDelegate.m" Remove the following lines around line 1043 and 1044: 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.