1, tell me what Swift is you know?
Swift is Apple's new development language, released in 2014 by the WWDC (Apple Developer Conference), which works with Objective-c on Mac OS and iOS platforms for building Apple platform-based applications.
What advantages does 2,swift have over objective-c?
Swift is better than the Objective-c language, with Performance objective-c 1.3 times times easier to get started.
What is the memory management of 3,swift?
Swift uses automatic reference counting (Automatic Reference counting, ARC) to simplify memory management
Does 4,swift support process-oriented programming?
It uses objective-c named parameters and the dynamic object model to seamlessly connect to the existing Cocoa framework and can be compatible with OBJECTIVE-C code, enabling process-oriented programming and object-oriented programming
5, for example, what are the objective-c in Swift?
Swift introduces some advanced data types that are not available in objective-c, such as tuples (tuples), that enable you to create and pass a set of values. Wift also introduces an optional type (optionals) to handle cases where the value of the variable does not exist. There are two possible options: one is the existence of a variable, such as Equals X, and two is a variable value that does not exist at all. Optionals is similar to the pointer to nil in Objective-c, but applies to all data types, not just classes, optionals is more secure and concise than the nil pointer in Objective-c. And the core of Swift's many most powerful features.
is 6,swift a safe language?
Swift is a type of safe language, Optionals is representative. Swift can help you work in a type-safe environment, and if you need to use string types in your code, Swift's security can prevent you from mistakenly passing int values, which allows you to detect and fix problems in a timely manner during the development phase.
7. Print a piece of code with Swift?
println ("Hello, World")
How do I define variables and constants in 8,swift?
Use let to declare constants, use VAR to declare variables
9, define an array and a dictionary with Swift?
Let Emptyarray = string[] ()
Let emptydictionary = dictionary<string, float> ()
10, why do you want to add a question mark after the variable type?
The value used to mark this variable is optional.
Transferred from: http://hovertree.com/h/bjaf/gfegc5sa.htm
Recommendation: http://www.cnblogs.com/roucheng/p/wendang.html
If the main road swift face question