what's new in ios 7.0

21
What's New in iOS 7.0 Mathieu Godart L'Atelier du mobile @MonsieurDart CocoaHeads Paris, 13 novembre 2014

Upload: cocoaheads-france

Post on 15-Jul-2015

3.690 views

Category:

Software


2 download

TRANSCRIPT

Page 1: What's new in ios 7.0

What's New in iOS 7.0

Mathieu GodartL'Atelier du mobile@MonsieurDart

CocoaHeads Paris, 13 novembre 2014

Page 2: What's new in ios 7.0

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/SC2273http://www.appcoda.com/ios7-airdrop-programming-tutorial

Page 3: What's new in ios 7.0

Flat UI

— Flat design… off course.

— Keywords: translucency, fluid, realistic motion, clarity, depth, vitality, deference.

Page 4: What's new in ios 7.0

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.

Page 5: What's new in ios 7.0

Dynamic Behaviors for Views 1

— UIAttachmentBehavior & UISnapBehavior ⚒— UIGravityBehavior & UIPushBehavior ⚒— UICollisionBehavior ⚒_animator = [[UIDynamicAnimator alloc] initWithReferenceView:self.view];_gravity = [[UIGravityBehavior alloc] initWithItems:@[mySquareView]];[_animator addBehavior:_gravity];

1 https://developer.apple.com/library/ios/samplecode/SC2273http://www.appcoda.com/ios7-airdrop-programming-tutorial

Page 6: What's new in ios 7.0

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.

Page 7: What's new in ios 7.0

Message UI

— MFMessageComposeViewController:

— adds support for attaching files to messages.

Page 8: What's new in ios 7.0

TextKit

— Create, edit, display and store text with less code. ⚒ 1

— New fonts. ⚒

1 https://developer.apple.com/library/ios/samplecode/SC2273http://www.appcoda.com/ios7-airdrop-programming-tutorial

Page 9: What's new in ios 7.0

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.

Page 10: What's new in ios 7.0

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.

Page 11: What's new in ios 7.0

Networking

— NSData supports Base64 encoding.

— NSURLComponents for parsing URL components.

— Core Telephony gives info about the radio in use.

Page 12: What's new in ios 7.0

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/SC2273http://www.appcoda.com/ios7-airdrop-programming-tutorial

Page 13: What's new in ios 7.0

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.

Page 14: What's new in ios 7.0

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.

Page 15: What's new in ios 7.0

AirDrop

— Apps can send files through AirDrop.

— This is done via UIActivityViewController.

— Apps can receive files sent via AirDrop.

— By publishing a UTI.

Page 16: What's new in ios 7.0

Audio

— Multichannel audio input and output.

— Inter-App Audio:

— Send MIDI and stream audio between apps.

— Done by publishing an AURemoteIO.

Page 17: What's new in ios 7.0

Core Image

— Smile detection.

— QR Code generator.

— New image filters.

Page 18: What's new in ios 7.0

JavaScript Core

— ObjC wrappers for many standard JS objects.

— Evaluate JavaScript code.

— Parse JSON responses.

— No documentation yet… just the header files.

Page 19: What's new in ios 7.0

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.

Page 20: What's new in ios 7.0

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

Page 21: What's new in ios 7.0

What Did You Notice?

Any insights on the new stuff in iOS 7?