Application crash due to UIApplicationInvalidInterfaceOrientation

Hi ! 

I’m trying to make the PhotoPickerController show on my landscape only application 

but i get a 

UIApplicationInvalidInterfaceOrientation reason: ** Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES **

I followed the guide here http://www.coronalabs.com/blog/2012/10/09/ios-6-game-center-and-landscape-orientation/ 

without success, is this workaround working with corona enterprise ?  

Thanks in advance 

Here is a simple way to reproduce the problem : 

  • When you have an landscape only application 

  • Open a webview on a page that contains an image upload form 

  • Click on the form and select Pick Image from gallery 

  • the application crashes with the UIApplicationInvalidInterfaceOrientation error

The only solution i find is : 

1- Set portrait and landscape orientation support in the .plist file 

2- Extend the AppViewController class to override the   supportedInterfaceOrientations method to return only landscape values

However i can’t extend AppViewController as its interface is not in any header file. 

There is another solution but it can’t work for me as the UIImagePicker is launched from a UIWebview

1- Extend the UIImagePicker and overload the shouldAutorotate method to return NO.

2- Launch your UIImagePicker instead of the standard one.

This is blocking me from my release so if anybody has an idea, it would be greatly appreciated ! 

The only solution i find is : 

1- Set portrait and landscape orientation support in the .plist file 

2- Extend the AppViewController class to override the   supportedInterfaceOrientations method to return only landscape values

However i can’t extend AppViewController as its interface is not in any header file. 

There is another solution but it can’t work for me as the UIImagePicker is launched from a UIWebview

1- Extend the UIImagePicker and overload the shouldAutorotate method to return NO.

2- Launch your UIImagePicker instead of the standard one.

This is blocking me from my release so if anybody has an idea, it would be greatly appreciated !