what's new in ios 7.0

Post on 15-Jul-2015

3.688 Views

Category:

Software

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

What's New in iOS 7.0

Mathieu GodartL'Atelier du mobile@MonsieurDart

CocoaHeads Paris, 13 novembre 2014

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

Flat UI

— Flat design… off course.

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

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.

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

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.

Message UI

— MFMessageComposeViewController:

— adds support for attaching files to messages.

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

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.

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.

Networking

— NSData supports Base64 encoding.

— NSURLComponents for parsing URL components.

— Core Telephony gives info about the radio in use.

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

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.

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.

AirDrop

— Apps can send files through AirDrop.

— This is done via UIActivityViewController.

— Apps can receive files sent via AirDrop.

— By publishing a UTI.

Audio

— Multichannel audio input and output.

— Inter-App Audio:

— Send MIDI and stream audio between apps.

— Done by publishing an AURemoteIO.

Core Image

— Smile detection.

— QR Code generator.

— New image filters.

JavaScript Core

— ObjC wrappers for many standard JS objects.

— Evaluate JavaScript code.

— Parse JSON responses.

— No documentation yet… just the header files.

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.

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

What Did You Notice?

Any insights on the new stuff in iOS 7?

top related