objective c - Use Size Classes in Xcode 6 beta -
built new project scratch in swift in xcode 6 (beta 1) , see file inspector of storyboard. there use size classes below use auto layout. screenshot of this.
1) use size classes?
2) related iphone 6 screen size?
size classes let's create single storyboard irrespective of device. brings joy of adaptive layouts(layouts different canvas sizes instead of specific device, compact or regular) more single app devices. focus on laying out design abstractly if generic device.
from whats new in xcode
size classessize classes ios 8 enable designing single universal storyboard customized layouts both iphone , ipad. size classes can define mutual views , constraints once, , add together variations each supported form factor. ios simulator , asset catalogs back upwards size classes well.
essentially want create single storyboard layouts iphone3.5",iphone4",iphone6(who knows size), ipad... can design separate layouts specific size devices not gonna create sec storyboard. when lay out user interface items on interface builder canvas in any width | height combination, layout applies sizes of devices app targets.
for more info: size class design help
nb: size class working fine in ios7 also. tested on ios7 simulators. if have problems in device allow me know update answer.
objective-c swift ios8 xcode6 size-classes
No comments:
Post a Comment