1

I have made a storyboard using "wCompact" (Compact Width) and "hRegular" (Regular Height") size class. Now when I change to "wAny"|"wHeight" all the components of on the storyboard to be specific that view controller disappears. I want to copy the same design for "wAny" (Any Width) and hAny ("Any Height") size class. How can I do it ? Right now I have placed no constraints on the design just layout. Is there any way to copy it. Following are images in "Compact Width" and "Regular Height" Well I have referred this too, why storyboard ui elements not showing on UIViewController in xcode 6? But i wanted to know if by any means copying across size classes is available in xcode6.

Layout with "wCompact"|"hRegular" enter image description here

Community
  • 1
  • 1
Nilesh Agrawal
  • 3,002
  • 10
  • 26
  • 54
  • By autolayout means adding constraints .. but those will be specific to only iphone6 (compact width | regular height") and not for wAny | wHeight. – Nilesh Agrawal Apr 15 '15 at 16:54
  • I mean that, right now i am using "wCompact" |"hRegualr" ... if i use ur approach then those constraints will remain only for "wCompact" |"hRegualr" and not apply to "wAny|WHeight" – Nilesh Agrawal Apr 15 '15 at 17:01
  • Thanks for your efforts bhavin, seems i will have to design it again for "wAny|wHeight" combination. – Nilesh Agrawal Apr 15 '15 at 17:05

1 Answers1

0

Basically you've done it wrong and you need to start over. Design the basic interface in Any/Any. What you do there will by default be true for all specific classes. Now design modifications to the basic interface in specific size classes.

matt
  • 515,959
  • 87
  • 875
  • 1,141
  • Ya matt...but the thing is he doesn't use constraints.....so even if it makes in wAhA ....the views disappear on other specifications... – Bhavin Bhadani Apr 15 '15 at 16:55
  • Well what matt says is true. – Nilesh Agrawal Apr 15 '15 at 17:04
  • Means you want to say that if you make a view for wAhA ....the view not disappears in compact size?...if yes...then I don't agree with you without autolayout – Bhavin Bhadani Apr 15 '15 at 17:09
  • Bhavin : It follows sub class hierarchy model. Sub Class hierarchy model . By this it means that constraints will get applied to that size class and to more specific derived sub classes if any, but it will be uninstalled for the generic size classes going up the chain. – Nilesh Agrawal Apr 15 '15 at 17:40
  • Question is NOT duplicate of http://stackoverflow.com/questions/27198661/why-storyboard-ui-elements-not-showing-on-uiviewcontroller-in-xcode-6 Question is about how to copy existing items from specific size class to other size class. – Vladimir Jul 29 '15 at 09:49