July 2017
Intermediate to advanced
284 pages
6h 45m
English
Let’s start with a simple “Hello, World!” Swift function:
| | func mySimpleFunction() { |
| | println("hello, world!") |
| | } |
If you’ve ever programmed in any other language aside from Objective-C, the preceding function should look very familiar:
Now on to a slightly more complex function:
| | func myFunctionName(param1: String, param2: Int) -> String { |
| | return "hello, world!" |
| | } |
This function takes in one parameter named param1 of type String and one parameter named param2 of type Int and returns a String ...
Read now
Unlock full access