Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

iOS and MacOS / Orientaion not working in IOS 5.1

Author
Message
ikenstar
10
Years of Service
User Offline
Joined: 26th Apr 2013
Location:
Posted: 4th May 2013 14:11
Currently my game is in landscape mode which is working fine for version 6.0 (iPhone and iPad). The same build if I installed in version 5.1 (iPhone and iPad) the game launches in portrait mode.

Rakesh-
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 4th May 2013 19:28
Do you have the Xcode project and <project>-Info.plist values set properly?

What code do you use to set the orientation?

Tier 1 or Tier 2?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
ikenstar
10
Years of Service
User Offline
Joined: 26th Apr 2013
Location:
Posted: 6th May 2013 11:56
Yes, I used <projec>-Info.plist values correctly in lanscape mode.
I am using agk::SetOrientationAllowed(0,0,1,1); in Tier2.
XCODE version 4.5

Rakesh-
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 6th May 2013 17:10
I have Tier 2 pure landscape working in iOS 5.1 and 6.1 fine in v1076 and v10811.

What version of AppGameKit are you using and where did you get the template?

Did try using the command agk:rientationChanged(3) (or 4)? It is not documented in the help code, but I have talked about it in various places for orientation control.

There are two sets of things in the Info.plist file, one sets what is allowed and the other sets the initial orientation:


The example above sets for one orientation only, AppGameKit landscape 4. AppGameKit landscape 3 would be LandscapeRight.

Will you show us your display setup code?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master

Login to post a reply

Server time is: 2024-03-29 15:24:58
Your offset time is: 2024-03-29 15:24:58