I am developing an application which supports portrait and landscape modes
. I am using auto layout to arrange my views
. As i have been reading many
I believe that the best approach is to update the constraints in -(void)updateViewConstraints
by checking the device orientation. There is no need to call setNeedsUpdateConstraints
in willAnimateRotationToInterfaceOrientation
because it is automatically called by the iOs when the device orientation changes. Thank you all for the great effort.