Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 41

mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
09/24/12 04:58 PM (13 years ago)

prevent landscape for ios 2.0 apps

I am finally converting my 1.5 apps over to 2.0 but am now unable to prevent landscape mode on ALL devices. Even though I chose to allow rotation on large devices only it still rotates on iPhone and iPad. I tried following the advice previously given and looked in BT_rotatingnavcontroller.m and BT_rotating tabcontroller.m to find the code to change. Yet in 2.0 it's not even found in the first one anymore although it is now in BT_viewcontroller.m. Yet when I change BOOL canRotate = FALSE it still doesn't work. Any advice??
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
09/24/12 05:11 PM (13 years ago)
Good question. I haven't seen this asked yet. I'm replying mostly to subscribe, since I'll be needing this info soon enough. Did you try limiting rotation in xCode's own build settings?
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
09/24/12 05:18 PM (13 years ago)
I tried... no luck.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
10/22/12 12:56 PM (13 years ago)
Mutzy, Any Luck. Im facing the same problem.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
10/22/12 01:34 PM (13 years ago)
 

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.