There are a few tips to learn about swift and share with you today
We write swift programs are generally used in XCDE, just choose the development language not
But the swift program tip in XCDE is too slag.
Today we recommend a learning method---swift learning tool
Playground-This can be found in the new project
Look at its powerful features.
This is basic Swift's use of some simple syntax
Playground-noun:a place where people can playimport cocoavar str = "Hello, Playground" var i = 10func supersqrt (x:int )->int{ var sum = 0 for var i = 1;i < x;i++ { sum + = i } return Sum}supersqrt ("Hell o ") var number = 10var Array = [String] (), var dict = [int:string] (); array.countarray = [" 1 "," 2 "," 3 "," 4 "," 5 "," 6 "]
Keep looking!
We can get the results straight out of the system without printing.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
swift-Learning Tool-playground