Search code examples
iphoneobjective-ciosuideviceorientation

How to handle UI components when device orientation for iPhone/iPad changes?


I have several components on my UIView like textfields, labels, tables, buttons. I want to handle device orientation changes. How to make these components arrange at right place automatically? Or do I need to re-frame them?

Please help.

Thanks


Solution

  • enter image description hereYou may use Autosizing option for the orientation changes.No need to write even a single line of code.