Upgrade to Pro — share decks privately, control downloads, hide ads and more …

iOS 8 IPDC

toco
November 17, 2014

iOS 8 IPDC

The talk I gave at the iPhone Developer Conference 2014 in Hamburg about new technologies in iOS 8.
Samplecode:
https://github.com/toco/IPDC-14/
https://github.com/toco/Designables

toco

November 17, 2014
Tweet

More Decks by toco

Other Decks in Programming

Transcript

  1. Many new Frameworks App Extensions Touch ID Apple Pay PhotoKit

    HealthKit HomeKit CloudKit Handoff Manual Camera Controls Metal SceneKit
  2. Fragmentation of Screen Sizes (in Points) Device Portrait Landscape iPhone

    3.5“ 320 x 480 480 x 320 iPad 768 x 1024 1024 x 768 iPhone 4" 320 x 568 568 x 320 iPhone 4.7" 375 x 667 667 x 375 iPhone 5.5" 414 × 736 736 x 414
  3. Adaptive UI • Fragmentation of Screen Sizes • Multiple Orientations

    • In Theory: Support for Unannounced Devices
  4. Size Classes Compact Any Regular Compact 3.5", 4", 4.7" iPhone

    L 5.5“ iPhone L Any Vertical Regular all iPhone P iPad P & L Horizontal P = Portrait, L = Landscape
  5. Size Classes Compact Any Regular Compact 3.5", 4", 4.7" iPhone

    L all iPhone L 5.5“ iPhone L Any 3.5", 4", 4.7" iPhone P & L 5.5“ iPhone P all devices all orientations 5.5“ iPhone L iPad P & L Vertical Regular all iPhone P all iPhone P iPad P & L iPad P & L Horizontal P = Portrait, L = Landscape
  6. UITraitCollection Properties: • Horizontal Size Class • Vertical Size Class

    • Display Scale • Interface Idiom -containsTraitsInCollection: +traitCollectionWithTraitsFromCollections:
  7. Contains Traits in Collection? horizontal Compact vertical Regular scale 2.0

    idiom Phone horizontal Compact vertical (Unspecified) scale (Unspecified) idiom (Unspecified) +traitCollectionWithHorizontalSizeClass: -containsTraitsInCollection: ✓
  8. Contains Traits in Collection? horizontal Compact vertical Regular scale 2.0

    idiom Phone horizontal Regular vertical (Unspecified) scale (Unspecified) idiom (Unspecified) +traitCollectionWithHorizontalSizeClass: -containsTraitsInCollection: ❌
  9. Combining Trait Collections horizontal Compact vertical (Unspecified) scale (Unspecified) idiom

    Phone + horizontal Regular vertical Compact scale (Unspecified) idiom (Unspecified) horizontal Regular vertical Compact scale (Unspecified) idiom Phone = +traitCollectionWithTraitsFromCollections: Last Collection Wins
  10. Asset Catalog • Any • Any & Compact • Any

    & Regular • Additionally Device Specific
  11. Presentation Controller • Decoupling of Presentation and Animation • Provided

    by Presented View Controller • Delegates for Adaptivity • You Can Write Your Own Presentation Controllers
  12. Interface Builder • Add custom Attributes for IB • IBInspectable

    / @IBInspectable • Live preview in IB • IB_DESIGNABLE / @IBDesignable
  13. Summary • Exciting new API • Traits and Size Classes

    • View Controller Changes • Interface Builder