SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Downloaden Sie, um offline zu lesen
WWDC 2014 Recap +
Swift Introduction
Austin iOS Developers
Anthony Blatner
Agenda
● Recap new announcements
● Review new Swift language highlights
● Swift programming demo
● Handoff --
move work, apps,
documents, easily
between iOS and
Mac devices
Continuity
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
● AirDrop
Share files
between mobile
devices and
Macs using
AirDrop
● Easily send files
to contacts
Continuity
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
Interactive Notifications
● Respond directly from the Notifications lock screen
● The useful functionality expands beyond Apple’s own apps
● Third-party widgets can be added to the Notifications Center now
-- interact with widgets without launching the full application
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
Interactive Notifications
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
iCloud Drive
Open documents from one app inside another compatible app. You’ll also be
able to access files from your Mac that have been saved and synced through
iCloud.
You can store and sync files of
any type, not just the ones
designed specifically for iCloud.
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
HealthKit
● App for tracking personal health and fitness data
● Monitor important health metrics on a daily basis
● Track vital signs, diet and sleeping habits
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
HealthKit
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
● Allow iPhones to start controlling smart devices, such as garage-door
openers, lights, and security cameras
● Apple will run a certification
program for HomeKit
● Apple’s “Internet of Things”
HomeKit
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
HomeKit
● August: This Bluetooth-enabled smart lock can be installed around your existing single-cylinder deadbolt setup
● Philips Hue: This line of connected bulbs has an app that lets you change colors and control your lights
remotely, and set schedules
● Chamberlain MQ Garage: Includes Wi Fi hub and door sensor to monitor and control your garage doors.
● Netatmo Weather Station: Monitors air quality, CO2 alerts
● Kwikswet Kevo: This Bluetooth 4.0-compatible smart lock
● Withings Smart Baby Monitor: listen and talk to your baby, play lullabies, or turn on the night light. You can
connect via Wi-Fi, Bluetooth, or Ethernet, and monitor noises, motion, temperature, and humidity.
● Haier: Smart air conditioner
● Honeywell: Like Nest Thermostat.
● Schlage: Camelot Touchscreen Deadbolt
● Cree: SmartCast system geared toward businesses
● Osram Sylvania: Lighting products
● iDevices: iGrill Mini Bluetooth-enabled thermometer probe to monitor the temperature of your food.
● iHome: Speakers, radios, and alarm clocks
● SkyBell: Smart Wi-Fi doorbell. Camera, motion sensor, see who’s at the door and notifications on bell ring.
● Texas Instruments, Marvell, and Broadcom
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
Swift
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
Swift
“Swift is an innovative new programming language for
Cocoa and Cocoa Touch. Writing code is interactive and
fun, the syntax is concise yet expressive, and apps run
lightning-fast. Swift is ready for your next iOS and OS X
project — or for addition into your current app — because
Swift code works side-by-side with Objective-C.”
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
Swift
Swift is designed to provide seamless compatibility with Cocoa and Objective-
C. You can use Objective-C APIs (ranging from system frameworks to your
own custom code) in Swift, and you can use Swift APIs in Objective-C
Interoperability lets you interface between Swift and Objective-C code,
allowing you to use Swift classes in Objective-C and to take advantage of
familiar Cocoa classes, patterns, and practices when writing Swift code.
Mix and match allows you to create mixed-language apps containing both
Swift and Objective-C files that can communicate with each other.
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
Swift
So, don’t freak out…
Our apps won’t change drastically just yet -- we can keep
using Objective-C. Swift will likely be used for shorthand,
optimizing performance, and supporting future frameworks.
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
Swift - Features
● Closures unified with function pointers
● Tuples and multiple return values
● Generics
● Fast and concise iteration over a range or collection
● Structs that support methods, extensions, protocols.
● Functional programming patterns, e.g.: map and filter
● Inferred types make code cleaner and less prone to mistakes
● Memory is managed automatically (ARC)
● You don’t need semi-colons
● All the information about a particular class resides in a single
.swift file -- no longer separate header & implementation files.
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
Swift - Interactive Playgrounds
“Playgrounds make writing Swift code incredibly simple and fun”
Type a line of code and the result appears immediately.
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
Swift - Values
Three-character keywords define a variable (var) or constant (let).
var myVariable = 42
myVariable = 50
let myConstant = 42
Compiler inferred types
let implicitInteger = 70
let implicitDouble = 70.0
let explicitDouble: Double = 70
Simple ways to include values in strings
let apples = 3
let appleSummary = "I have (apples) apples."
Optionals -- a value either contains a value or contains nil -- question marks (?) mark optionals.
var optionalName: String? = "John Appleseed"
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
Swift - Functions
Declaration and invocation
func greet(name: String, day: String) -> String {
return "Hello (name), today is (day)."
}
greet("Bob", "Tuesday")
Multiple Return Values
func getGasPrices() -> (Double, Double, Double) {
return (3.59, 3.69, 3.79)
}
getGasPrices()
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
Objective-C
UITableView *myTableView = [[UITableView alloc] initWithFrame:CGRectZero style:
UITableViewStyleGrouped];
Swift
let myTableView: UITableView = UITableView(frame: CGRectZero, style: .Grouped)
Objective C
UIColor *color = [UIColor colorWithRed:0.5 green:0.0 blue:0.5 alpha:1.0];
Swift
let color = UIColor(red: 0.5, green: 0.0, blue: 0.5, alpha: 1.0)
Swift vs Objective-C
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
Objective-C
[myTableView insertSubview:mySubview atIndex:2];
Swift
myTableView.insertSubview(mySubview, atIndex: 2)
Swift vs Objective-C
© 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
Swift - Code Demo
WWDC 2014 Recap & Swift Introduction

Weitere ähnliche Inhalte

Ähnlich wie WWDC 2014 Recap & Swift Introduction

Wd602 g formation-ibm-worklight-foundation-v6-2-developper-des-applications-m...
Wd602 g formation-ibm-worklight-foundation-v6-2-developper-des-applications-m...Wd602 g formation-ibm-worklight-foundation-v6-2-developper-des-applications-m...
Wd602 g formation-ibm-worklight-foundation-v6-2-developper-des-applications-m...CERTyou Formation
 
Canopy SF Home Automation Meetup Slides 10/14/2014
Canopy SF Home Automation Meetup Slides 10/14/2014Canopy SF Home Automation Meetup Slides 10/14/2014
Canopy SF Home Automation Meetup Slides 10/14/2014gregulator
 
IBM Bluemix™ Architecture & Deep Dive
IBM Bluemix™ Architecture & Deep DiveIBM Bluemix™ Architecture & Deep Dive
IBM Bluemix™ Architecture & Deep DiveIBM
 
Make Mobile Apps Quickly
Make Mobile Apps QuicklyMake Mobile Apps Quickly
Make Mobile Apps QuicklyGil Irizarry
 
Mobile, Open Source, and the Drive to the Cloud
Mobile, Open Source, and the Drive to the CloudMobile, Open Source, and the Drive to the Cloud
Mobile, Open Source, and the Drive to the CloudDev_Events
 
Mobile, Open Source, & the Drive to the Cloud
Mobile, Open Source, & the Drive to the CloudMobile, Open Source, & the Drive to the Cloud
Mobile, Open Source, & the Drive to the CloudDev_Events
 
Resume - Alsey Coleman Miller - iOS Developer
Resume -  Alsey Coleman Miller - iOS DeveloperResume -  Alsey Coleman Miller - iOS Developer
Resume - Alsey Coleman Miller - iOS DeveloperAlsey Miller
 
NCDevCon 2017 - Cross Platform Mobile Apps
NCDevCon 2017 - Cross Platform Mobile AppsNCDevCon 2017 - Cross Platform Mobile Apps
NCDevCon 2017 - Cross Platform Mobile AppsJohn M. Wargo
 
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014Gil Irizarry
 
Keeping your options open
Keeping your options openKeeping your options open
Keeping your options openDoug Tidwell
 
IoT Lab @ Dreamforce 2013 -- Things To Do in the #DevZoneLab
IoT Lab @ Dreamforce 2013 -- Things To Do in the #DevZoneLabIoT Lab @ Dreamforce 2013 -- Things To Do in the #DevZoneLab
IoT Lab @ Dreamforce 2013 -- Things To Do in the #DevZoneLabReidCarlberg
 
Resume - Alsey Coleman Miller - iOS Developer
Resume -  Alsey Coleman Miller - iOS DeveloperResume -  Alsey Coleman Miller - iOS Developer
Resume - Alsey Coleman Miller - iOS DeveloperAlsey Miller
 
Getting Acquainted with PhoneGap
Getting Acquainted with PhoneGapGetting Acquainted with PhoneGap
Getting Acquainted with PhoneGapJoseph Labrecque
 
Basic iOS Training with SWIFT - Part 1
Basic iOS Training with SWIFT - Part 1Basic iOS Training with SWIFT - Part 1
Basic iOS Training with SWIFT - Part 1Manoj Ellappan
 
Dreamweaver CS6, jQuery, PhoneGap, mobile design
Dreamweaver CS6, jQuery, PhoneGap, mobile designDreamweaver CS6, jQuery, PhoneGap, mobile design
Dreamweaver CS6, jQuery, PhoneGap, mobile designDee Sadler
 
Android crash course_20180812
Android crash course_20180812Android crash course_20180812
Android crash course_20180812Haim Michael
 
Chiara Chiappini - Swift and the future of iOS app development
Chiara Chiappini - Swift and the future of iOS app developmentChiara Chiappini - Swift and the future of iOS app development
Chiara Chiappini - Swift and the future of iOS app developmentCodemotion
 
Baruco 2014 - Rubymotion Workshop
Baruco 2014 - Rubymotion WorkshopBaruco 2014 - Rubymotion Workshop
Baruco 2014 - Rubymotion WorkshopBrian Sam-Bodden
 

Ähnlich wie WWDC 2014 Recap & Swift Introduction (20)

Wd602 g formation-ibm-worklight-foundation-v6-2-developper-des-applications-m...
Wd602 g formation-ibm-worklight-foundation-v6-2-developper-des-applications-m...Wd602 g formation-ibm-worklight-foundation-v6-2-developper-des-applications-m...
Wd602 g formation-ibm-worklight-foundation-v6-2-developper-des-applications-m...
 
Canopy SF Home Automation Meetup Slides 10/14/2014
Canopy SF Home Automation Meetup Slides 10/14/2014Canopy SF Home Automation Meetup Slides 10/14/2014
Canopy SF Home Automation Meetup Slides 10/14/2014
 
IBM Bluemix™ Architecture & Deep Dive
IBM Bluemix™ Architecture & Deep DiveIBM Bluemix™ Architecture & Deep Dive
IBM Bluemix™ Architecture & Deep Dive
 
Make Mobile Apps Quickly
Make Mobile Apps QuicklyMake Mobile Apps Quickly
Make Mobile Apps Quickly
 
Mobile, Open Source, and the Drive to the Cloud
Mobile, Open Source, and the Drive to the CloudMobile, Open Source, and the Drive to the Cloud
Mobile, Open Source, and the Drive to the Cloud
 
Mobile, Open Source, & the Drive to the Cloud
Mobile, Open Source, & the Drive to the CloudMobile, Open Source, & the Drive to the Cloud
Mobile, Open Source, & the Drive to the Cloud
 
Resume - Alsey Coleman Miller - iOS Developer
Resume -  Alsey Coleman Miller - iOS DeveloperResume -  Alsey Coleman Miller - iOS Developer
Resume - Alsey Coleman Miller - iOS Developer
 
NCDevCon 2017 - Cross Platform Mobile Apps
NCDevCon 2017 - Cross Platform Mobile AppsNCDevCon 2017 - Cross Platform Mobile Apps
NCDevCon 2017 - Cross Platform Mobile Apps
 
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
 
Keeping your options open
Keeping your options openKeeping your options open
Keeping your options open
 
IoT Lab @ Dreamforce 2013 -- Things To Do in the #DevZoneLab
IoT Lab @ Dreamforce 2013 -- Things To Do in the #DevZoneLabIoT Lab @ Dreamforce 2013 -- Things To Do in the #DevZoneLab
IoT Lab @ Dreamforce 2013 -- Things To Do in the #DevZoneLab
 
Resume - Alsey Coleman Miller - iOS Developer
Resume -  Alsey Coleman Miller - iOS DeveloperResume -  Alsey Coleman Miller - iOS Developer
Resume - Alsey Coleman Miller - iOS Developer
 
Expo - Zero to App.pptx
Expo - Zero to App.pptxExpo - Zero to App.pptx
Expo - Zero to App.pptx
 
Getting Acquainted with PhoneGap
Getting Acquainted with PhoneGapGetting Acquainted with PhoneGap
Getting Acquainted with PhoneGap
 
Basic iOS Training with SWIFT - Part 1
Basic iOS Training with SWIFT - Part 1Basic iOS Training with SWIFT - Part 1
Basic iOS Training with SWIFT - Part 1
 
Dreamweaver CS6, jQuery, PhoneGap, mobile design
Dreamweaver CS6, jQuery, PhoneGap, mobile designDreamweaver CS6, jQuery, PhoneGap, mobile design
Dreamweaver CS6, jQuery, PhoneGap, mobile design
 
Android crash course_20180812
Android crash course_20180812Android crash course_20180812
Android crash course_20180812
 
Talk (2)
Talk (2)Talk (2)
Talk (2)
 
Chiara Chiappini - Swift and the future of iOS app development
Chiara Chiappini - Swift and the future of iOS app developmentChiara Chiappini - Swift and the future of iOS app development
Chiara Chiappini - Swift and the future of iOS app development
 
Baruco 2014 - Rubymotion Workshop
Baruco 2014 - Rubymotion WorkshopBaruco 2014 - Rubymotion Workshop
Baruco 2014 - Rubymotion Workshop
 

Kürzlich hochgeladen

BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort ServiceDelhi Call girls
 
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceanilsa9823
 
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCRFULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCRnishacall1
 
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost LoverPowerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost LoverPsychicRuben LoveSpells
 
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Pooja Nehwal
 
9892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x79892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x7Pooja Nehwal
 
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...wyqazy
 
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceanilsa9823
 
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...Niamh verma
 

Kürzlich hochgeladen (9)

BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 71 Noida Escorts >༒8448380779 Escort Service
 
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
 
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCRFULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
FULL ENJOY - 9999218229 Call Girls in {Mahipalpur}| Delhi NCR
 
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost LoverPowerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Arkansas, AR (310) 882-6330 Bring Back Lost Lover
 
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
 
9892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x79892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x7
 
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
 
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
 
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
 

WWDC 2014 Recap & Swift Introduction

  • 1. WWDC 2014 Recap + Swift Introduction Austin iOS Developers Anthony Blatner
  • 2. Agenda ● Recap new announcements ● Review new Swift language highlights ● Swift programming demo
  • 3. ● Handoff -- move work, apps, documents, easily between iOS and Mac devices Continuity © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 4. ● AirDrop Share files between mobile devices and Macs using AirDrop ● Easily send files to contacts Continuity © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 5. Interactive Notifications ● Respond directly from the Notifications lock screen ● The useful functionality expands beyond Apple’s own apps ● Third-party widgets can be added to the Notifications Center now -- interact with widgets without launching the full application © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 6. Interactive Notifications © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 7. iCloud Drive Open documents from one app inside another compatible app. You’ll also be able to access files from your Mac that have been saved and synced through iCloud. You can store and sync files of any type, not just the ones designed specifically for iCloud. © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 8. HealthKit ● App for tracking personal health and fitness data ● Monitor important health metrics on a daily basis ● Track vital signs, diet and sleeping habits © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 9. HealthKit © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 10. ● Allow iPhones to start controlling smart devices, such as garage-door openers, lights, and security cameras ● Apple will run a certification program for HomeKit ● Apple’s “Internet of Things” HomeKit © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 11. HomeKit ● August: This Bluetooth-enabled smart lock can be installed around your existing single-cylinder deadbolt setup ● Philips Hue: This line of connected bulbs has an app that lets you change colors and control your lights remotely, and set schedules ● Chamberlain MQ Garage: Includes Wi Fi hub and door sensor to monitor and control your garage doors. ● Netatmo Weather Station: Monitors air quality, CO2 alerts ● Kwikswet Kevo: This Bluetooth 4.0-compatible smart lock ● Withings Smart Baby Monitor: listen and talk to your baby, play lullabies, or turn on the night light. You can connect via Wi-Fi, Bluetooth, or Ethernet, and monitor noises, motion, temperature, and humidity. ● Haier: Smart air conditioner ● Honeywell: Like Nest Thermostat. ● Schlage: Camelot Touchscreen Deadbolt ● Cree: SmartCast system geared toward businesses ● Osram Sylvania: Lighting products ● iDevices: iGrill Mini Bluetooth-enabled thermometer probe to monitor the temperature of your food. ● iHome: Speakers, radios, and alarm clocks ● SkyBell: Smart Wi-Fi doorbell. Camera, motion sensor, see who’s at the door and notifications on bell ring. ● Texas Instruments, Marvell, and Broadcom © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 12. Swift © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 13. Swift “Swift is an innovative new programming language for Cocoa and Cocoa Touch. Writing code is interactive and fun, the syntax is concise yet expressive, and apps run lightning-fast. Swift is ready for your next iOS and OS X project — or for addition into your current app — because Swift code works side-by-side with Objective-C.” © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 14. Swift Swift is designed to provide seamless compatibility with Cocoa and Objective- C. You can use Objective-C APIs (ranging from system frameworks to your own custom code) in Swift, and you can use Swift APIs in Objective-C Interoperability lets you interface between Swift and Objective-C code, allowing you to use Swift classes in Objective-C and to take advantage of familiar Cocoa classes, patterns, and practices when writing Swift code. Mix and match allows you to create mixed-language apps containing both Swift and Objective-C files that can communicate with each other. © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 15. Swift So, don’t freak out… Our apps won’t change drastically just yet -- we can keep using Objective-C. Swift will likely be used for shorthand, optimizing performance, and supporting future frameworks. © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 16. Swift - Features ● Closures unified with function pointers ● Tuples and multiple return values ● Generics ● Fast and concise iteration over a range or collection ● Structs that support methods, extensions, protocols. ● Functional programming patterns, e.g.: map and filter ● Inferred types make code cleaner and less prone to mistakes ● Memory is managed automatically (ARC) ● You don’t need semi-colons ● All the information about a particular class resides in a single .swift file -- no longer separate header & implementation files. © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 17. Swift - Interactive Playgrounds “Playgrounds make writing Swift code incredibly simple and fun” Type a line of code and the result appears immediately. © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 18. Swift - Values Three-character keywords define a variable (var) or constant (let). var myVariable = 42 myVariable = 50 let myConstant = 42 Compiler inferred types let implicitInteger = 70 let implicitDouble = 70.0 let explicitDouble: Double = 70 Simple ways to include values in strings let apples = 3 let appleSummary = "I have (apples) apples." Optionals -- a value either contains a value or contains nil -- question marks (?) mark optionals. var optionalName: String? = "John Appleseed" © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 19. Swift - Functions Declaration and invocation func greet(name: String, day: String) -> String { return "Hello (name), today is (day)." } greet("Bob", "Tuesday") Multiple Return Values func getGasPrices() -> (Double, Double, Double) { return (3.59, 3.69, 3.79) } getGasPrices() © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 20. Objective-C UITableView *myTableView = [[UITableView alloc] initWithFrame:CGRectZero style: UITableViewStyleGrouped]; Swift let myTableView: UITableView = UITableView(frame: CGRectZero, style: .Grouped) Objective C UIColor *color = [UIColor colorWithRed:0.5 green:0.0 blue:0.5 alpha:1.0]; Swift let color = UIColor(red: 0.5, green: 0.0, blue: 0.5, alpha: 1.0) Swift vs Objective-C © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 21. Objective-C [myTableView insertSubview:mySubview atIndex:2]; Swift myTableView.insertSubview(mySubview, atIndex: 2) Swift vs Objective-C © 2014 Jackrabbit Mobile http://www.jackrabbitmobile.com
  • 22. Swift - Code Demo