I have a subview that I want to keep stops during rotating screen, so I decided to put the NSLayoutConstraint type: Trailing Space to Superview Top Space to Supe
Make sure you add the constraints after adding the required subview to your main view.It took a while get knowledge relating to this issue .