I've set the constraints in IB as IBOutlet
in the corresponding view controller. The values for such constraints that I set in IB and the storyboard are for portrait orientation. I need to change those constraints when the device changes to landscape orientation, and to restore them when rorating again to portrait.
I've read several posts regarding updating constrains when rotating the device but each of them say different things, and I don't understand which the process and method calls should be... I've been searching in Apple's documentation regarding Autolayout
but I didn't find anything of how to programmatically change the constraints when rotating the device.
I know few things about autolayout
and I'm really lost with this... I'd appreciate some clear explanation of how should I manage this scenario.
Thanks in advance