i have simple label , webview on view controller. on 4s , 5 width perfect, on 6, there "white band" on right.. need configure in constraints, let "grow" webview in length on 5, , in width & length on 6/6+? thanks
autolayout classes tricky part:
- create components on w-any, h-any would appear on ios devices.
- start creating constrains targets device
- changing w-any, h-any 1 like.
- reposition label, , web view
- bottom,left of interface builder define new constrains label , web view based on margins.
- you can add more labels/ui elements appear on class of devices (iphone 6/6+)
you can check layout without running simulator: https://developer.apple.com/library/ios/recipes/xcode_help-interface_builder/chapters/previewinglayouts.html#//apple_ref/doc/uid/tp40009971-ch5
Comments
Post a Comment