Native overlay view orientation problem in IOS7

After updating from xcode 4 to 5 and updating corona sdk enterprise to 2013.1260 (last version before new 2.0 ui stuff) custom native views that used to display in landscape mode now show in portrait in IOS7 on both ipads and iphones. In the corona environment everything is landscape like it should be but the custom native overlay view is no longer displaying correctly and half of it is cutoff.

The orientation options checked in xcode are Landscape Left and Landscape right.

In build.settings I have:

settings = {
    orientation = {
        default   = “landscapeRight”,
        content   = “landscapeRight”,
        supported = {“landscapeLeft”, “landscapeRight”}
    },
    iphone = {
        plist = {
            UIInterfaceOrientation = “UIInterfaceOrientationLandscapeRight”,
            UISupportedInterfaceOrientations = {
                “UIInterfaceOrientationLandscapeLeft”,
                “UIInterfaceOrientationLandscapeRight”
            }
        }
    }
}

I looked through a lot of xcode and corona posts/documentation/etc but cannot find the anyone with the same issue.

If anyone has any ideas I would be grateful to hear them.

I guess in IOS 7 this is necessary but not in IOS 6 because it solved the issue.

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

I guess in IOS 7 this is necessary but not in IOS 6 because it solved the issue.

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