Showing a view controller in landscape mode only in action extension.

Originator:neeraj
Number:rdar://19243130 Date Originated:13/12/2014
Status: Resolved:
Product:iOS Product Version:
Classification: Reproducible:
 
Summary:
1)My app supports view controllers in portrait mode except one view controller which needs to show only in landscape mode.
2) I have overridden supportedInterfaceOrientation and shouldAutoRotate  in view controller.Works perfectly fine in native app.
3) Doesn't work in action extension.

Steps to Reproduce:
1) Create an action extension.
2) From ActionViewController present a view controller and override shouldAutorotate and supportedInterfaceOrientations in view controller and return landscape.

Expected Results:
 Presented viewController should show up in landscape mode only.

Actual Results:
Presented viewController shows up in potrait mode.

Version:
iOS8.0 and above.

Notes:
The same code works for native app not for extension.Please find the attached sample project.

Configuration:
iPhone 6,6+, Device and Simulator

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!