I have an application that captures images using AVCapturesession, I have a single View Controller which has a UIView inside and I run the session inside this view.
When my application loads in portrait mode all is good it opens up full screen and on rotation to landscape mode also it remains full screen, Since my view is used to capture an image I am not allowing rotation of only the UIView which is capturing image all is working good.
The only problem is that when my app opens in landscape mode it is not full screen once i rotate it to portrait it gets full screen and then on coming back to landscape it remains full screen.
How can I solve this, or is there a way to force your iOS app to always open in portrait mode and then let it rotate?