How can I apply in my application to leave the width and / or height at 100% for iphone and Ipad? I have in my navbar application. textview, webview ... Thank you
How can I apply in my application to leave the width and / or height at 100% for iphone and Ipad? I have in my navbar application. textview, webview ... Thank you
To create a layout that is compatible with Iphone and Ipads it is necessary to have the knowledge of Auto Layout
.
First thing to set in size class
is compatibility, in that image it would be for all devices.
InyourstoryboardyouwillneedtoaddConstraints
toeachcomponenttogetitsheightandwidthexample:
Iselectedthetwoviewsgreenandyellowandaddedaconstraintthatmakesthembothhavethesamewidth,sowhenthedeviceisIpaditwilladapt.
Iadviseyoutotakealookat: Raywenderlich - Auto Layout