Discussion Forums  >  Uncategorized

Replies: 6    Views: 227

Goeshi
Aspiring developer
Profile
Posts: 18
Reg: Nov 01, 2011
Cirencester
180
01/12/12 10:07 AM (14 years ago)

Rotate ONLY between landscape orientations??

Is there any way to allow rotations but ONLY between the two landscape orientations? I've figured out how to fix the orientation in landscape, and how to allow all rotations but i'm stuck here. Thanks in advance for any help. Goeshi
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/12/12 10:14 AM (14 years ago)
Hi Goeshi, Zould you tell us please Iphone or Android development? And please tell what you did with the orientation Best Regards, Danny
 
Goeshi
Aspiring developer
Profile
Posts: 18
Reg: Nov 01, 2011
Cirencester
180
like
01/12/12 10:19 AM (14 years ago)
iOS sorry so far i've opted to fix the orientation by editing the BT_rotatingNavController.m file to read 'BOOL canRotate = FALSE' and then later have if(canRotate){ return YES; }else{ return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); } this fixes it nicely in the LandscapeRight orientation but ideally it would rotate to LandscapeLeft when inverted. Portrait does not work with this app so i want to avoid it. thanks Goeshi
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
01/12/12 10:34 AM (14 years ago)
Hi Goeshi, Thanks for the clarification. I'm sorry but I don't know how to solve your problem. Nice of you to share what you've done Best Regards, Danny
 
chadh0130
Apple Fan
Profile
Posts: 352
Reg: Nov 05, 2011
Rhode Island
4,020
like
01/12/12 07:33 PM (14 years ago)
Hey Goeshi, you have to edit the rotatingNavController.m or rotatingTabController.m add return UIInterfaceOrientationIsLandscapeLeft(interfaceOrientation); without the quotation marks. place that code on the last line under the //should rotate rule on both the rotatingNavController.m and rotatingTabController.m this should work. Post your results!
 
Goeshi
Aspiring developer
Profile
Posts: 18
Reg: Nov 01, 2011
Cirencester
180
like
01/13/12 01:37 AM (14 years ago)
Thanks pikpocket but i keep these errors. Undefined symbols: _UIInterfaceOrientationIsLandscapeLeft, referenced from: -[BT_rotatingNavController shouldAutorotateToInterfaceOrientation:] in BT_rotatingNavController.o -[BT_rotatingTabBarController shouldAutorotateToInterfaceOrientation:] in BT_rotatingTabBarController.o ld: symbol(s) not found collect2: ld returned 1 exit status Am i supposed to add in your line? or overwrite an existing line?
 
Don Javi
Aspiring developer
Profile
Posts: 91
Reg: Oct 08, 2011
Burriana
910
like
02/20/12 06:37 AM (13 years ago)
Sorry, I have a rejection and an application for not allowing vertical rotation. I accept that blocks the horizontal rotation but I allow rotation of the vertical ipad (home button above) - The reason for rejection is 10.1. Can you help me please!
 

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.