var array = ["A","B"] var array2:[String] = ["A","B"] var array3:Array count isEmpty insert removeAtIndex removeLast 遍历 for index in 0,,array.count { } for item in array { } for (index,item) in enumerate(array) { }…
swift 2.0 改变了一些地方,让swift变得更加完善,这里是一些最基本的初学者的代码,里面涉及到swift学习的最基本的字符串,数组,字典和相关的操作.好了直接看代码吧. class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a n…