Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use arkit in landscape mode #1

Open
Ezor opened this issue Sep 25, 2009 · 3 comments
Open

Use arkit in landscape mode #1

Ezor opened this issue Sep 25, 2009 · 3 comments

Comments

@Ezor
Copy link

Ezor commented Sep 25, 2009

Hello

I have tried to modify the code to use arkit in landscape mode but it didn't work. Can you provide some code (maybe by adding some comments in the source code ?) to explain how to use arkit in landscape mode.

Anyway thanks for this usefull project.

Julien "Ezor"

@delagroove
Copy link

  • (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight);
    }

@JustinKent
Copy link

I don't think this alone will work... a lot more needs to be done to support horizontal orientation. Try using this fork instead:
http://github.com/nielswh/iPhone-AR-Toolkit/commit/54dd015bd6a5a34e2e5152667e855ed01a133047
I haven't tried it, but it should work.

@nielswh
Copy link

nielswh commented Nov 20, 2011

I've added this feature to my fork. It was a bit more work that just setting the orientation. I had to also adjust the compass setting and other methods to make it work.
Check out https://github.com/nielswh/iPhone-AR-Toolkit for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants