Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Workshop iOS

138 views

Published on

iOS With Swift Workshop slides

Published in: Software
  • Be the first to comment

  • Be the first to like this

Workshop iOS

  1. 1. iOS Development with Swift
  2. 2. print("SWIFT")
  3. 3. What? Multi-paradigm Designed by Apple First Appeared in June, 2014
  4. 4. Why? Productivity Inter-operability Apple’s Language of choice
  5. 5. Who?
  6. 6. Playground
  7. 7. Syntax
  8. 8. Constants and Variables let place: String = "Pace" let year: Int = 2015 let isHavingFun: Bool = true var version: Double = 1.0 version = 2.1
  9. 9. Type Inference let place = "Pace" let year = 2015 let isHavingFun = true var version = 1.0 version = 2.1
  10. 10. Most awesome feature
  11. 11. Strings Concatenation Type Cast Format
  12. 12. Arrays and Dictionaries var emptyArray = [String]() emptyArray.append("foo") let someNumbers = [1, 2, 3] var majors = Dictionary<String, String>() majors["John"] = "Computer Science" majors.removeValueForKey("John") let schedule = [ "morning": "classes", "afternoon": "awesome workshop", "night": "party", ]
  13. 13. Optionals let numberOfLegs = ["ant": 6, "snake": 0, "cheetah": 4] let possibleLegCount: Int? = numberOfLegs["aardvark"]
  14. 14. Flow Control If / Else For / While Switch
  15. 15. Functions func hello(name: String = “world”){ print (“Hello (name)”) } func add(n1: Int, n2: Int) -> Int { return n1 + n2 } add(1, n2: 2)
  16. 16. Classes Class Declaration Inheritance Initialization Method overriding
  17. 17. Creating an iOS Project
  18. 18. App Lifecycle
  19. 19. ViewController Lifecycle
  20. 20. UIKit and Interface Builder UIViewController UIView UILabel UIButton UIImageView UITableView UITextField
  21. 21. Importing Assets
  22. 22. Let’s Do Something!
  23. 23. Thanks! Ian Carvalho Twitter: @ian.carv

×