Hi,
This seems like it should be a simple question but I can't find an answer. I have an app that runs on both iPhone and iPad. The app uses various parent controllers, including splitview, tab bar, and nav, but the question applies to a circumstance where a view controller is running without a parent (ie it is the window's root view controller) and is running on an iPad. I would like to lock the orientation of that view controller so that it can only be portrait or portraitUpsideDown. The app is written in swift and I am targetting iOS 10. I would like to know how to do this and also if it would create any issues with approval of the app, since it seems Apple wants iPad apps to support all orientations (and my app does, except for this one view controller, which is used only when running on iPad).
Thanks very much,
Matthew Fleming
Fleming Dermatopathology