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

What's new in iOS 9 SDK

What's new in iOS 9 SDK

A quick overview

Vinh Nguyen

October 07, 2015
Tweet

More Decks by Vinh Nguyen

Other Decks in Technology

Transcript

  1. Click me first > What's New in iOS 9 -

    iOS Developer Library <
  2. • String Transform • Search APIs • Content Blockers •

    SFSafariViewController • Attributes of New Filters • Low Power Mode • New Fonts
  3. Security Changes App Transport Security (ATS) #pragma mark - IMPORTANT!

    Starting from iOS 9, App Transport Security enforces to use secure HTTPS requests by default.
  4. App Transport Security (ATS) Per-Domain Exceptions <key>NSAppTransportSecurity</key> <dict> <key>NSExceptionDomains</key> <dict>

    <key>yourserver.com</key> <dict> <!--Include to allow subdomains--> <key>NSIncludesSubdomains</key> <true/> <!--Include to allow HTTP requests--> <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key> <true/> <!--Include to specify minimum TLS version--> <key>NSTemporaryExceptionMinimumTLSVersion</key> <string>TLSv1.1</string> </dict> </dict> </dict>
  5. App Transport Security (ATS) For arbitrary content This is considerably

    a dangerous approach and should not be used sparingly. <key>NSAppTransportSecurity</key> <dict> <!--Include to allow all connections (DANGER)--> <key>NSAllowsArbitraryLoads</key> <true/> </dict>
  6. Using Facebook iOS SDK and re-compile using Xcode 7? Read

    Facebook's iOS 9 migration guide to prepare you apps for iOS 9 compatibility.
  7. Using Facebook iOS SDK and re-compile using Xcode 7? Recap:

    • Whitelist Facebook Servers for Network Requests • Whitelist Facebook Apps URL scheme to conforms to new changes to -canOpenURL:, described in this WWDC video.
  8. Search API Search API allow us to choose what content

    from our apps we want to index on the iOS spotlight search.
  9. Search API • NSUserActivity: introduced in iOS 8 for Handoff,

    but iOS 9 now allows activities to be searchable. • Web Markup: Web Markup allows apps that mirror their content on a website to index their content in Spotlight. • CoreSpotlight: allows to index any content inside of our app.
  10. Search API For more information on the new Search APIs,

    I’d recommend watching WWDC session 709, Introducing Search APIs.
  11. Storyboard References Allow to reference view controllers in other storyboards

    from your segues. Helps keep storyboard references in a modular way. WWDC session 215, What’s New in Storyboards
  12. UIStackView Simple way to horizontally or vertically stack views in

    our app. Under the hood, these views use auto layout to manage the position and size of their child views, which makes it easy to build adaptive UIs.
  13. Split Screen Multitasking Multitasking allows users to have more than

    one app on the screen at a time. This comes in two form Slide Over, and Split View.
  14. Split Screen Multitasking For best user experience, the system tightly

    manages resource usage and terminates apps that are using more than their fair share -– Apple iOS 9 Multitasking Documentation
  15. Reference • iOS SDK Release Notes for iOS 9 •

    iOS 8.3 to iOS 9.0 API Differences • Apple Developer Portal • App Transport Security Tech Note • Get Your App Ready for iOS 9 • What's new in iOS 9 - Hackinginswift.com • NSHipster iOS 9
  16. Resource For Learning • Tips for iOS 9 Development •

    Ray Wenderlich blog • NSScreencast • AppCoda
  17. • iOS 9 seems to come with fewer changes in

    compared to iOS 8. It mainly focuses on Swift lang, Watch OS and the new tvOS SDK. The only addition to Objective-C are the __kindOf selector, generics and nullability annotation.
  18. • Most important thing is the new security changes, there

    are still many things that I have not covered in this talk.
  19. • For App Transport Security. It may not a requirements

    for now but someday Apple will enforce for apps submit to App Store (like 64- bit requirement a while ago). I encourage you to visit App Transport Security Tech Note for more information.
  20. • UIStackView == awesome, wish Apple built this earlier. •

    UI Testing, Storyboard references, Xcode Code Coverage, Multitasking... all are great additions.