摘要:
Connect the UI to Code 主题 The weak keyword means that it’s possible for that property to have no value (be nil) at some point in its life. - @IBOutlet 阅读全文
摘要:
Build a Basic UI The AppDelegate class contains a single property: window. With this property the app delegate keeps track of the window in which all 阅读全文
摘要:
// func sumOf(numbers:Int...)->Int{ var sum=0 for number in numbers { sum+=number } return sum } sumOf() sumOf(4,5,12) // func returnFifteen()-> Int{ 阅读全文
摘要:
// Playground - noun: a place where people can play swift2.2 NO.1 import UIKit var str = "Hello, playground" // Playground - noun: a place where peopl 阅读全文
摘要:
// Playground - noun: a place where people can play swift2.2 NO.2 import UIKit var str = "Hello, playground" let interestingNumbers=[ "Prime":[2,3,5,7 阅读全文