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.

AppGameKit Classic Chat / Landscape Orientation in 1076

Author
Message
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 29th Aug 2012 12:13
In 1074 I could start my app as landscape in T2 ios without any changes to the template.

This is not more the case in 1076.

My app starts in portrait, and ignores the SetOrientation (0,0,1,1) AppGameKit command.

What changes should I make to the ios t2 template to start in landscape and allow both landscape orientations?
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 29th Aug 2012 14:02
Have you tried this?

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 29th Aug 2012 14:47
there are some hints in that link, but it's a different problem.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 29th Aug 2012 17:03
bjadams, actually, it is the same problem. Your issue has to do not having the correct code from the template. I posted the current/working T2 iOS template code today in this thread. Be careful, I included my template.cpp and template.h files. They have code that allows you to tell when your app has returned from being sent to the background.

You simply specify both of the landscape types in your Xcode project and in your code.

Cheers,
Ancient Lady
AGK Community Tester
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 29th Aug 2012 17:17 Edited at: 29th Aug 2012 17:19
Ancient Lady, thanks a lot.

Do you know, off your mind, which file/s I need to change?
Or there are way too many changes to list them all?

BTW, I am using Xcode3
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 29th Aug 2012 17:34
See my response in the other thread.

Cheers,
Ancient Lady
AGK Community Tester
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 29th Aug 2012 21:40
Solution for Xcode3:

1. copy All 7 files in apps / Interpreter ios/ Classes to your project directory Classes folder

2. edit untitledviewcontroller.m
replace #include "interpreter.h" with #include "template.h"

3. edit template-info.plist
add a new array key UISupportedInterfaceOrientations
add strings UIInterfaceOrientationLandscapeLeft and UIInterfaceOrientationLandscapeRight


there is no need to edit screen sizes in the template files or use agk:rientationChanged

Enjoy!

Login to post a reply

Server time is: 2024-11-23 20:46:57
Your offset time is: 2024-11-23 20:46:57