Posted at 14:34h
Know. Automobile Layout Versus Frame Based Layout
in Non classé
Automobile Layout dynamically calculates the size and place of all of the views in your view hierarchy, predicated on constraints put on those views. As an example, you can easily constrain a switch such that it is horizontally focused with a picture view and thus that the buttonРІР‚в„ўs top side constantly stays 8 points below the imageРІР‚в„ўs bottom. In the event that image viewРІР‚в„ўs size or place changes, the buttonРІР‚в„ўs place automatically adjusts to suit.
This constraint-based approach to design enables you to build individual interfaces that dynamically respond to both external and internal changes.
Outside modifications happen once the size or form of one's superview modifications. With every modification, you need to upgrade the design of one's view hierarchy to use that is best the available room. Below are a few typical sourced elements of outside modification:
An individual resizes the window (OS X).
The consumer comes into or will leave Split take on an iPad (iOS).
The unit rotates (iOS).
The active call and audio recording pubs look or disappear (iOS).
You intend to help various size classes.
You need to help different screen sizes.
These types of modifications can happen at runtime, in addition they need a powerful reaction from your software. Other people, like help for various display screen sizes, represent the application adapting to environments that are different. Also through the display screen size wonРІР‚в„ўt typically change at runtime, producing an adaptive interface allows your run that is app equally on an iPhone 4S, an iPhone 6 Plus, and sometimes even an iPad. Car design can be a key component for supporting Slide Over and separate Views regarding the iPad.