1. What's New in iOS 7.0
Mathieu Godart
L'Atelier du mobile
@MonsieurDart
CocoaHeads Paris, 13 novembre 2014
2. Scope
— From iPhone 4.
— From iPad 2 (performances are fine) and iPad mini.
— Today: iOS 7 + iOS 8 = 96%
— This list is not exhaustive. 1
1
https://developer.apple.com/library/ios/samplecode/SC2273
http://www.appcoda.com/ios7-airdrop-programming-tutorial
4. Animating Views
— UIMotionEffect defines how a view responds to
device-based motion (for parallax effect). ⚒
— UI animation with a spring: ⚒
[UIView animateWithDuration:1.0 delay:0.0
usingSpringWithDamping:1.0 initialSpringVelocity:0.5
options:UIViewAnimationOptionCurveLinear
animations:^{ (…)
— UIScreenEdgePanGestureRecognizer tracks pan
gestures that originate near an edge of the screen.
6. UI Goodies
— The new tintColor property.
— View controller transitions can be customized,
driven interactively.
— View controllers can now specify their preferred
status bar style and visibility.
— UIView and UIScreen snapshot methods faster than
rendering.
8. TextKit
— Create, edit, display and store text with less code. ⚒ 1
— New fonts. ⚒
1
https://developer.apple.com/library/ios/samplecode/SC2273
http://www.appcoda.com/ios7-airdrop-programming-tutorial
9. Backgrounding
— Fetch content in background from a server:
— Called periodically.
— Upon push notification (even silent ones).
— Can use either NSURLRequest or NSURLSession.
— State restoration now allows saving and restoring
any object.
10. NSURLSession
— New class for HTTP upload and download.
— Download when app is suspended or not running.
— NSURLSession can initiate multiple download and
upload tasks.
— Its delegate to handle authentication requests.
— Serves as a replacement for NSURLConnection,
NSURLDownload and delegates.
11. Networking
— NSData supports Base64 encoding.
— NSURLComponents for parsing URL components.
— Core Telephony gives info about the radio in use.
12. Multipeer Connectivity
— Find nearby devices over Bt and Wifi. 1
— With the UI provided: MCBrowserViewController
— Without the UI: MCNearbyServiceBrowser
1
https://developer.apple.com/library/ios/samplecode/SC2273
http://www.appcoda.com/ios7-airdrop-programming-tutorial
13. Games
— Sprite Kit Framework: ⚒
— Build on top of UIKit… easy to learn?
— Sprite Kit SKS in Interface Builder. ⚒
— Caution: no SceneKit before iOS 8.
— Game Controller Framework.
14. Map Kit
— MKMapCamera with control over 3D map. ⚒
— MKDirections lets you ask route information.
— Routes can be used to create overlays. ⚒
— MKMapSnapshotter.
— MKTileOverlay and MKTileOverlayRenderer to
supplement or replace tiles.
15. AirDrop
— Apps can send files through AirDrop.
— This is done via UIActivityViewController.
— Apps can receive files sent via AirDrop.
— By publishing a UTI.
16. Audio
— Multichannel audio input and output.
— Inter-App Audio:
— Send MIDI and stream audio between apps.
— Done by publishing an AURemoteIO.
18. JavaScript Core
— ObjC wrappers for many standard JS objects.
— Evaluate JavaScript code.
— Parse JSON responses.
— No documentation yet… just the header files.
19. Web Kit
— UIWebView pagination. ⚒
Store Kit
— Store Kit has a new receipt system that can be used
to verify in-app purchases on the device itself.
20. AV Foundation
— Speech Synthesizer
— And a lot of stuff…
"J'en ai découvert une démonstration véritablement
merveilleuse que cette marge est trop étroite pour
contenir."
— Pierre de Fermat
21. What Did You Notice?
Any insights on the new stuff in iOS 7?