随笔分类 -  swift语言

摘要:importUIKitclassViewController:UIViewController{overridefuncviewDidLoad(){super.viewDidLoad()self.initView()}overridefuncdidReceiveMemoryWarning(){sup... 阅读全文
posted @ 2015-07-06 12:31 幻想无极 阅读(498) 评论(0) 推荐(0)
摘要:forindexin0..<2{println("\(index)")}forindexin0...2{println("\(index)")}vararr=["hah","xixi"]forvalueinarr{println("value:\(value)")}vari=0whilei<arr... 阅读全文
posted @ 2015-06-30 12:22 幻想无极 阅读(129) 评论(0) 推荐(0)
摘要:http://letsswift.com/category/swiftguide/http://www.imooc.com/course/list?is_easy=3&c=ioshttp://www.swiftv.cn/http://open.163.com/special/opencourse/i... 阅读全文
posted @ 2015-06-30 11:25 幻想无极 阅读(273) 评论(0) 推荐(0)
摘要:////main.swift//swift3////Createdbytqhon15/6/19.//Copyright(c)2015年tqh.Allrightsreserved.//importFoundationprintln("Hello,World!")/***(一)字符串字面量*/letso... 阅读全文
posted @ 2015-06-19 01:06 幻想无极 阅读(261) 评论(0) 推荐(0)
摘要:变量常量,注释,分号,整数,浮点数。数值行类型转换,类型别名,波尔值,元组,可选,断言////main.swift//swift1////Createdbytqhon15/6/8.//Copyright(c)2015年tqh.Allrightsreserved.//importFoundation... 阅读全文
posted @ 2015-06-09 00:14 幻想无极 阅读(292) 评论(0) 推荐(0)