Log in or register to post comments

problem with screen orientation in iOS6 - both iphone and ipad

September 25, 2012 - 5:12am #1

Hi,

My apps lost lanscape orientation :/ I download latest SDK for iOS and still nothing.. I'm using sdk native not unity.

 

Thx for any idea how to fixed it ?

 

problem with screen orientation in iOS6 - both iphone and ipad

April 26, 2013 - 10:56pm #16

It's working for ios6.

[window setRootViewController:arParentViewController];

problem with screen orientation in iOS6 - both iphone and ipad

October 1, 2012 - 11:04am #15

Hi Chuck,

If you can put together a small repro project and PM me a link to it then I will try to take a look at it.

thanks,

N

problem with screen orientation in iOS6 - both iphone and ipad

October 1, 2012 - 7:33am #14

Adding the setRootViewController did fix the camera view in my app.   But I am still having trouble with other screens.    I have added a navigation controller to the app and need to push other full screen view controllers onto the camera view.   When I do that the new view controllers are rotated like the camera view used to be.  

Here is my "Add the EAGLView code"

    // Add the EAGLView and the overlay view to the window

    arParentViewController = [[ARParentViewController alloc] init];

    arParentViewController.arViewRect = screenBounds;

    [window insertSubview:arParentViewController.view atIndex:0];

    [window setRootViewController:arParentViewController];

    UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:arParentViewController];

    [navigationController setNavigationBarHidden:YES];

    [window addSubview:navigationController.view];

    [window makeKeyAndVisible];


Thanks for any help you can offer,  Chuck 

problem with screen orientation in iOS6 - both iphone and ipad

September 28, 2012 - 7:37am #13

Hi All,

If anyone is having problems here then please try this:

Add the line below:

 [window setRootViewController:arParentViewController];

..and then crucially you need to highlight in XCode the orientations that the app supports i.e. click the buttons because these set up the info.plist which is fundamental to how the new orientations are handled by iOS6.

I did a quick test on an iPhone 5 and it makes all the difference, so please let us know how you get on with this.

N

 

problem with screen orientation in iOS6 - both iphone and ipad

September 27, 2012 - 1:43am #12

Hi chuck,

At the moment the only way I know of to get this working on an iOS6 device properly is to build with XCode 4.4.1 and iOS5.1 SDK.

As I said we are looking into this matter, but because it's rooted in the core of how the iPhone deals with orientation, there may not be a quick fix.

N

problem with screen orientation in iOS6 - both iphone and ipad

September 26, 2012 - 2:28pm #11

I am experiencing the same problem with an app that was working fine when built under 5.1 sdk.   My app is meant to be locked in Landscape Right orientation.   I find if I change the angle for this orientation in handleARViewRotation to 90 instead of 0 I can get the camera view headed my way.  Not sure if that helps, my app's main UI is still rotated (it is implemented in ARParentViewController).   Anxious to hear what you come up with on this.   iOS 6 working samples would be very helpful to show whatever work around you come up with. 

 

Thank you, Chuck 

problem with screen orientation in iOS6 - both iphone and ipad

September 26, 2012 - 8:35am #10

Thanks

...strange it did not work for me with an iPhone 4S

tried adding [window setRootViewController:arParentViewController];

and it would not auto rotate - still locked in portrait.

We will investigate further :)

N

 

 

problem with screen orientation in iOS6 - both iphone and ipad

September 26, 2012 - 7:44am #9

Of course!

Base SDK: "Latest iOS (iOS 6.0)"

Deployment Target: 4.0

Device: iPhone 4 (with iOS 6)

OS X: Mountain Lion 10.8.2

Xcode: 4.5

Native SDK: Vuforia SDK iOS 1.5.9

problem with screen orientation in iOS6 - both iphone and ipad

September 25, 2012 - 7:11am #8

Thanks for this guys.

After a bit of digging I can confirm there is an issue with Auto Rotation on iOS 6 if you build using the base SDK for iOS6 for deployment on iOS6 using XCode 4.5.

However, I tried the workaround suggested, but it did not work for me :(

....So can you please confirm your configuration?  Base SDK / Deployment Target  / Device 

thanks,

N

BTW If one builds using 5.1 SDK using XCode 4.4.1 for deployment on iOS 5.1 it is ok 

 

problem with screen orientation in iOS6 - both iphone and ipad

September 25, 2012 - 6:41am #7

Degovillaran:

 

U save my life ;) thanks. All prev apps start to work correctly ! nice one

problem with screen orientation in iOS6 - both iphone and ipad

September 25, 2012 - 6:27am #6

I've just found a solution!! Smile

For example, in Dominoes app, in DominoesAppDelegate.mm; I've added the underlined sentence:

    // Add the EAGLView and the overlay view to the window

    arParentViewController = [[DomParentViewController alloc] init];

    arParentViewController.arViewRect = screenBounds;

    [window insertSubview:arParentViewController.view atIndex:0];

    [window setRootViewController:arParentViewController];

    [window makeKeyAndVisible];


This way, the interface responds to orientation changes.

problem with screen orientation in iOS6 - both iphone and ipad

September 25, 2012 - 6:08am #5

problem with screen orientation in iOS6 - both iphone and ipad

September 25, 2012 - 6:06am #4

As you can see the interface doesn't respond to orientation changes...

problem with screen orientation in iOS6 - both iphone and ipad

September 25, 2012 - 5:45am #3

Hmmm - not sure what you mean

I just tested the dominoes sample from the 1.5.9 release on an iPhone 4S built with the latest SDK and XCode 4.5

..and it seems to run as expected when changing orientation.

Could you please post some screenshots so we can see what you are seeing?

thanks,

N

 

problem with screen orientation in iOS6 - both iphone and ipad

September 25, 2012 - 5:18am #2

Hi,

Same problem, even in the "Dominoes" sample the rotation doesn't work!

Please help!!

Log in or register to post comments