$30 off During Our Annual Pro Sale. View Details »

An introduction to iOS development

An introduction to iOS development

Avatar for Eugene Oskin

Eugene Oskin

January 20, 2018
Tweet

More Decks by Eugene Oskin

Other Decks in Programming

Transcript

  1. XCode shortcuts • ⌘{ to jump to the left tab

    • ⌘} to jump to the right tab • ⌘R Rebuild • ⌘T Run tests
  2. Optional var myString: String? myString = "Hello, Swift!" if let

    yourString = myString { println("Your string has - \(yourString)") } else { println("Your string does not have a value") }
  3. A closure as the last argument // Definition public func

    responseJSON( completion: (Response<Any>) -> Void) -> Self // Usage let request = Alamofire.request("https://httpbin.org/") request.responseJSON { response in print("Complete") }
  4. Dependency managers • CocoaPods • Carthage # Xcode 8 +

    9 $ sudo gem install cocoapods $ pod init $ pod install