Skip to content

Latest commit

 

History

History

AdaptiveElements

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

AdaptiveElements: Implementing Your Own Adaptive Design with UIKit

This sample shows how to use UIKit to lay out your app's elements in different sizes, from full-screen on the smallest iPhone to Multitasking on the biggest iPad. It shows how to make smart decisions about implementing your own design. It also demonstrates how to reuse elements in different sizes, so you can take advantage of all the available space without having to rewrite your entire app.

  • SimpleExampleViewController demonstrates how to use a view's size to determine an arrangement of its subviews. Also, it shows how to add an animation effect during app size changes.

  • ExampleContainerViewController is a more complete example of a container view controller. It demonstrates how to define an instance to represent a design, how to make a complex decision of which design to use for the app's size, and how to apply the design to the UI.

  • SmallElementViewController and LargeElementViewController are contained within ExampleContainerViewController. LargeElementController, specifically, is reused in different ways. These two view controllers handle taps to present and dismiss.

For more information, see:

Requirements

Build

Xcode 8.0 or later; iOS 10.0 SDK or later

Runtime

iOS 9.0 or later

Copyright (C) 2016 Apple Inc. All rights reserved.