basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
12/17/12 09:29 AM (13 years ago)

BT 2.0 rotation problem (iOS)

I am working on a BT 2.0 app and am having problems with rotation. When I test the app on my iPhone it rotates despite me setting it to rotate only on large devices. I've double-checked the BT_config.txt and it's correct: "allowRotation":"largeDevicesOnly", (although I don't want the app to rotate at all on any device. The app breaks when rotated). I checked on iPhone5, and iphone4 (on simulator) and both rotate.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
12/17/12 09:34 AM (13 years ago)
Uncomment this in appDelegate.m file //bitwise OR operator... NSUInteger mask = 0; /* UNCOMMENT THIS TO SUPPORT iOS 6 SCREEN ROTATAIONS mask |= UIInterfaceOrientationMaskPortrait; if(canRotate){ mask |= UIInterfaceOrientationMaskLandscapeLeft; mask |= UIInterfaceOrientationMaskLandscapeRight; mask |= UIInterfaceOrientationMaskPortraitUpsideDown; } */
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
12/17/12 10:03 AM (13 years ago)
that worked perfectly, thanks!! Strange I had to uncomment something that says it will support ios6 rotations to stop it rotating!
 

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.