Mercado iOS & Swift vs Objective-C

33
Mercado iOS & Swift vs Objective-C Mauricio Meirelles Maurício Zaquia

Transcript of Mercado iOS & Swift vs Objective-C

Page 1: Mercado iOS & Swift vs Objective-C

Mercado iOS & Swift vs Objective-C

Mauricio Meirelles

Maurício Zaquia

Page 2: Mercado iOS & Swift vs Objective-C

Instrutor iOS (BEPiD)Vive iOS desde 2009Pós-graduado em Gestão de Negócios

Instrutor iOS (BEPiD)Vive iOS desde 2010Graduado em Sistemas de Informação

Experiência de 0,4356 anos em Swift

Mauricio Meirelles

Maurício Zaquia

Experiência de 0,4356 anos em Swift

Page 3: Mercado iOS & Swift vs Objective-C
Page 4: Mercado iOS & Swift vs Objective-C
Page 5: Mercado iOS & Swift vs Objective-C

$22,000,000,000

Page 6: Mercado iOS & Swift vs Objective-C

Satélite Hubble 2X

Page 7: Mercado iOS & Swift vs Objective-C

American Airlines 2X

Page 8: Mercado iOS & Swift vs Objective-C

Q2 2014, IDC

Page 9: Mercado iOS & Swift vs Objective-C

last 12 months , Business Insider

Page 10: Mercado iOS & Swift vs Objective-C

Pre-order Opening Weekend

(millions)

dazeinfo

Page 11: Mercado iOS & Swift vs Objective-C
Page 12: Mercado iOS & Swift vs Objective-C

Better Mail

PhotoKitSelf-sizing Cells

Continuity

SMS Forwarding

SceneKit

CloudKit

Extensions

Notification Actions

TouchID

Handoff

Custom KeyboardsiBeacon Improvements

Today Widget

Metal

HealthKit iMessage Improvements

Size-Classes

TestFlight

Page 13: Mercado iOS & Swift vs Objective-C
Page 14: Mercado iOS & Swift vs Objective-C

let immutableValue = truelet immutableString: String = "String"

var mutableValue = 27.05var mutableFloat: Float = 19.92

Page 15: Mercado iOS & Swift vs Objective-C

let tuple = (test: 1.23, tuple: "Works", awesome: true)println(tuple.tuples)

let namelessTuple = (1, "bc")println(namelessTuple.0)

Page 16: Mercado iOS & Swift vs Objective-C

var let

Page 17: Mercado iOS & Swift vs Objective-C

var maybeValue: String? = "I'm here!"println(maybeValue) // Optional("I'm here!")println(maybeValue!) // "I'm here!"

if let innerValue = maybeValue {println(innerValue)

}

Page 18: Mercado iOS & Swift vs Objective-C

if let

Page 19: Mercado iOS & Swift vs Objective-C

let anIntArray = [1, 2, 3]var emptyArray = [Double]()

emptyArray.append(1)emptyArray.append(2)emptyArray[0...1] = [3, 4]emptyArray.removeAtIndex(1)emptyArray.removeAll(keepCapacity: false)

Page 20: Mercado iOS & Swift vs Objective-C

for i in 0..<10 {println(i)

}

for i in 0...5 {println(i)

}

Page 21: Mercado iOS & Swift vs Objective-C

..< ...

Page 22: Mercado iOS & Swift vs Objective-C

let objects = ["Hey", "Brother"]

for (index, object) in enumerate(objects) {println("Object at index \(index) is \(object)")

}

Page 23: Mercado iOS & Swift vs Objective-C

extension Int {

func isPositive() -> Bool {return self > 0

}

}

println(32.isPositive())

Page 24: Mercado iOS & Swift vs Objective-C

let closure: ()->() = { println("I'm inside a closure!") }let another: (String,Int)->(String) = { (name, times) in

var final = ""for i in 0..<times {

final += "Hey \(name)!\n"}return final

}

closure()println(another("Maurício", 2))

Page 25: Mercado iOS & Swift vs Objective-C

Tailor Swift toyour needs.”“

Page 26: Mercado iOS & Swift vs Objective-C

HORA CERTA

Page 27: Mercado iOS & Swift vs Objective-C
Page 28: Mercado iOS & Swift vs Objective-C
Page 29: Mercado iOS & Swift vs Objective-C

Introdução ao Swift Storyboard

CoreLocation

Push NotificationsPush Actions

Silent Notifications

GCD

Threads UIViewControllerInterface Builder

SpriteKit

MVC

Delegate

Data SourceNotification Center

NSUserDefaults

Core Data

CloudKit

@IBDesignable

@IBInspectableMapKit

UINavigationController

UITabBarController

iBeacon

CoreBluetooth

UITableView

Prototype Cell

UIScrollView UISlider

UISwitchUIImageView

Page 30: Mercado iOS & Swift vs Objective-C

Gratuito

Em português

Page 31: Mercado iOS & Swift vs Objective-C

HOJE

Page 32: Mercado iOS & Swift vs Objective-C

letswift.it/itunesu

Page 33: Mercado iOS & Swift vs Objective-C

Mauricio Meirelles [email protected]@mauriciom

Maurício Zaquia [email protected]@mtzaquia

Obrigado!