iphone - Xcode: layout good on 4S, 5/6 not -


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:

  1. create components on w-any, h-any would appear on ios devices.
  2. start creating constrains targets device
    1. changing w-any, h-any 1 like.
    2. reposition label, , web view
    3. bottom,left of interface builder define new constrains label , web view based on margins.
  3. 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