+ All Categories
Home > Documents > iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift...

iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift...

Date post: 11-Jun-2020
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
39
iOS 8 Features Overview 1
Transcript
Page 1: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

iOS 8Features Overview

1

Page 2: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Gestures

2

Page 3: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Sensors

3

Page 4: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Accelerometer

4

Page 5: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Gyroscope

5

Page 6: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Compass

6

Page 7: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Ambient Light Sensor

7

Page 8: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Magnetic Sensor

8

Page 9: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

GPS Sensor

9

Page 10: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Touch ID Sensor

10

Page 11: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

NFC Sensor

11

Page 12: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

🔗 Accessibility

12

👀 VoiceOver: gesture-based screen-reader

large text, white on black, zoom

🔊 cc, MMS texting, visible/vibrating alerts, FaceTime

♿ AssistiveTouch: one finger/stylus multi-touch entry

Siri

Guided Access: autism, ADD, sensory disorder

Accessibility Programming Guide for iOS: https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/iPhoneAccessibility/Introduction/Introduction.html

Accessibility features: http://www.apple.com/accessibility

Page 13: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

iPhone 6

13

A8 64bit, 25% faster cpu, 50% faster gpu

Retina 6: 4.7" - 1334x750px, 6P: 5.5" - 1920x1080px

RAM 16GB, 64GB, 128GB

Page 14: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

iPhone 6

14

Barometer air pressure determined elevation

Camera 8Mp iSight, 1080p HD, 720p SloMo

NFC near-field-communication (wireless, w/in cm)

pay wireless payment technology (nfc, touchID)

Page 15: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

🔗 iOS Feature List

15

iOS 4 Multitasking

FaceTime

iAd

Apple Push Notification

High Dynamic Range (HDR)

Game Center

iTunes TV Show Rentals

iOS features: https://developer.apple.com/library/ios/releasenotes/General/WhatsNewIniOS/Articles/iOSnn.html

Page 16: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

iOS Feature List

16

iOS 4 Improved email

iBooks

Create playlists

Spell Checking

Wireless keyboard support

Page 17: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

🔗 iOS Feature List

17

iOS 5 iCloud

Game Center

Notification Center

Reminders

Newstand App

Camera

Twitter integration

Page 18: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

iOS Feature List

18

iOS 5 Safari browser

PC Free: wireless updates

AirPrint

Accessibility

Mail

Siri

Page 19: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

🔗 iOS Feature List

19

iOS 6 Game center

Game kit

Social frameworks

Maps

Pass kit

In-app purchase

iAd

Page 20: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

iOS Feature List

20

iOS 6 Reminders

Collection views: customized data layout

Auto layout: set guidelines for UI elements

State preservation: preserve UI state

Facebook integration

Siri

FaceTime: over cellular

Page 21: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

iOS Feature List

21

iOS 6 Passbook: tickets, boarding passes, coupons, loyalty cards

Maps

Photo sharing: from photos app via iCloud

Phone: Do not disturb

Page 22: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

🔗 iOS Feature List

22

iOS 7 Sprite kit: physics engine

Game controller

Game center

Maps

Air Drop: sharing with iOS devices

Inter-app Audio: apps share audio

Multipeer connectivity: bluetooth, wi-fi, ptp wi-fi

Page 23: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

iOS Feature List

23

iOS 7 Media accessibility: cc management

Enhanced Store kit: in-app purchase verification

Enhanced Message UI: send files with messages

CarPlay: call, directions, text, music

Page 24: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

🔗 iOS Feature List

24

iOS 8 App extensions: intra-app functionality sharing

Document picker : multi-app doc access

Cloud kit: non-iCloud user data sharing

Handoff: start in one, end in another device

Health kit

Home kit

Photos framework

Page 25: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

iOS Feature List

25

iOS 8 PhotosUI framework: create Photos app extensions

Touch ID Authentication

SceneKit: 3D games and UIs

SpriteKit: pixel-perfect collision detection

Unified storyboards: use one with universal apps

Home kit

Photos framework

Page 26: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:
Page 27: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Swift key features

27

Type inference Strongly typed, but type inferred

switch test any type value; single, range, set cases

Closures assigned, returned, passed - manipulated as data

Tuples collections of same/different type values

Optionals value/reference variables that may not have a value

Page 28: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Swift key features

28

Value types Array, Dictionary, String: struct implemented

Boundary checks arrays are boundary checked

struct, enum value types; class-like

multiple return values functions can return tuples

Generics used throughout (array, dictionaries etc)

Page 29: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Swift key features

29

Operators overload existing; create new ones

Overflow checked by default; use &<op> to ignore

String interpolation interpolate variables/constants/expressions w/in strings

Nested types nest one type inside another

Nested functions nest one function inside another

Page 30: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Error Prevention

30

{} : required around control bodies

No pointers

= does not return a value (if i = 2 errors out)

; optional

() around conditions optional

variables/constants must be initialized

overflow checked by default

Page 31: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Error Prevention

31

no implicit conversion b/w numeric types

array bounds are checked

memory leaks almost eliminated (auto memory management)

weak references avoid circular references

🔗 Swift Standard Library Reference

Page 32: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Swift-ObjectiveC

32

both use Cocoa, Cocoa Touch frameworks

can combine both in same app

Array, Dictionary, String bridged to NSArray, NSDictionary, NSString

🔗 Using Swift with Cocoa and Objective-C

Page 34: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Key OS Frameworks

34

Foundation NSObject subclasses basic functionality

AppKit UI elements for OS X apps

UIKit UI elements for iOS apps

🔗 iOS Developer Library

Page 35: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:
Page 36: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Xcode IDE

36

Playground testing ground for code w/out project overhead

REPL Read-Eval-Print-Loop: debugging tool; interact w/app

IB Interface Builder : one adaptive storyboard

Simulator handles adaptive layouts

Live rendering IB renders the UI automatically

Page 37: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Xcode IDE

37

View debugger Fix UI problems

Game design 2D/3D game support; includes particle editor

LLVM Low Level Virtual Machine compiler

Fix-it as you type suggestions and error flagging

LLDB Multicore debugging engine

Page 38: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Xcode IDE

38

Assistant editor displays most appropriate counterpart file

Location Simulation choose location to test Core Location features

Version editor show versions when VC is used (Git)

Instruments tools for performance/memory/graphics testing

XCTest unit-testing tool

Page 39: iOS8 Features Overview - SIUEstornar/courses/notes/iosLS/iOS8... · WWDC 2014 code demos! The Swift Programming Language! Design Patterns. Title: iOS8 Features Overview Created Date:

Useful links

39

Swift Standard Library🔗

Using Swift with Cocoa and Objective C🔗

Swift blog🔗

WWDC 2014 code demos🔗

The Swift Programming Language🔗

Design Patterns🔗


Recommended