Layout with width 100% and / or height 10%

1

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

    
asked by anonymous 07.10.2015 / 02:56

1 answer

2

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.

InyourstoryboardyouwillneedtoaddConstraintstoeachcomponenttogetitsheightandwidthexample:

Iselectedthetwoviewsgreenandyellowandaddedaconstraintthatmakesthembothhavethesamewidth,sowhenthedeviceisIpaditwilladapt.

Iadviseyoutotakealookat: Raywenderlich - Auto Layout

    
07.10.2015 / 03:20