Swift tutorial
#Swift is an open source programming language that supports multiple programming paradigms and compilation. It was released by Apple at WWDC (Apple Developer Conference) in 2014 and is used to develop iOS, OS X and watchOS. app.
Swift combines the best of C and Objective-C without the limitations of C compatibility.
Swift can use the same running environment as Objective-C on Mac OS and iOS platforms.
On June 8, 2015, Apple announced at WWDC 2015 that Swift will open source code, including the compiler and standard library.
Who is suitable to read this tutorial?
This tutorial is suitable for programmers who want to engage in mobile terminal (iphone) development or OS X applications. It would be better if you have previous programming foundation.
All examples in this tutorial are developed and tested based on Xcode7.1 (Swift 2.x syntax format).
The first Swift program
Of course the first Swift program starts from outputting "Hello, World!", the code is as follows:
/* 我的第一个 Swift 程序 */ var myString = "Hello, World!" print(myString)