Section1: Adaptive layout
IOS8, you will have a new way to build the interface, you have completely independent device, screen size, resolution and device orientation ( device orientation ), you will understand collections the features, size classes and universal Storyboards , each function is not only in the current device to do the best interfaces , I think it will be the same in the future. Take an open mind to read the following points and be prepared to be surprised.
1.1, the introduction of adaptive layout:
The iphone in the previous years, may be just a size, a resolution, so we can put the interface layout is very dead, we can have the ipad, witty we could also build 2 Xib or Storyboards , of course, the code is OK:
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { ...}
Just see the code send my spine cool! By
Tutorial Team
As the size increases and the resolution frenzy strikes, you may have thought of a few new ones Xib to be compatible, and what a horrible mistake! Fortunately Apple has brought us Adaptive Layout and size-classes , they created a simple layout that can be compatible with so many iOS devices and so size-even more in the future.
Adaptive Layout:collectionsthe features, size classes and generic Storyboards can make your design fit on so iOS devices, and you'll see how to configure your layout for size classes, which will seamlessly transfer to current and future iOS devices. Now you can try to create a weather application from scratch with the knowledge of auto-layout, and use that knowledge to make constant updates.
?
Transition Coordinators: The rotation of the interface is more adaptive than changing the view bounds , creating multiple lines of interface and rotating the device, you will find yourself completely slag.
It seems there are a lot of things that are attracting us because we are about to do some new projects that use cutting-edge technology, and what are we waiting for? Don't hesitate to Adaptive Layout act quickly.
IOS 8 by Tutorials (Section1: Adaptive layout)