Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 78

Korkut Ata
Aspiring developer
Profile
Posts: 108
Reg: Aug 09, 2011
Luxembourg
11,580
03/22/12 02:26 AM (13 years ago)

Any way to prevent the rotation of big devices

IOS BT 1.5 In the core settings there is an option to prevent small devices rotation, is there any way to prevent the rotation of big devices, ie. IPad. Thanks for the support.
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
03/22/12 04:56 AM (13 years ago)
in Xcode, you can select how your app rotates.
 
Korkut Ata
Aspiring developer
Profile
Posts: 108
Reg: Aug 09, 2011
Luxembourg
11,580
like
03/23/12 04:50 PM (13 years ago)
Thanks, Raoul. Sorry for the late reply. It worked as follows, just changing all TRUE to FALSE in the 'BT_rotatingNavController.m' screen; @implementation BT_rotatingNavController //should rotate -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { //[BT_debugger showIt:self:[NSString stringWithFormat:@"shouldAutorotateToInterfaceOrientation %@", @""]]; //allow / dissallow rotations BOOL canRotate = FALSE; //appDelegate xxxxx_appDelegate *appDelegate = (xxxxx_appDelegate *)[[UIApplication sharedApplication] delegate]; if([appDelegate.rootApp.rootDevice isIPad]){ canRotate = FALSE; }else{ //should we prevent rotations on small devices? if([appDelegate.rootApp.jsonVars objectForKey:@"allowRotation"]){ if([[appDelegate.rootApp.jsonVars objectForKey:@"allowRotation"] isEqualToString:@"largeDevicesOnly"]){ canRotate = FALSE;
 

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.