去cocoa china 上面搜索了几篇文章回来,以后还会不断的更新,关于swift的一些内容
swift 的笔试内容
http://www.cocoachina.com/swift/20150918/13499.html
从0开始学swift
http://www.cocoachina.com/swift/20150921/13452.html
swift optional 可选类型的解析
http://www.cocoachina.com/swift/20150921/13452.html
swift 与c风格字符串char的比较
http://www.cocoachina.com/swift/20151016/13626.html
swift中语法重要的一些语法
http://www.cocoachina.com/swift/20151124/14342.html
运算符的重载
func +(firstTuple:(Int,Int),secondTuple:(Int,Int))->(Int,Int) { return (firstTuple.0 + secondTuple.0,secondTuple.1 + secondTuple.1) } var aa = (2,3) + (3,4) print(aa)
//先声明运算符 prefix operator +++ {} //进行实现 prefix func +++ (point:Point)->Point { return Point(x: point.x + 1, y: point.y + 1) } let aaa = Point(x: 1.0, y: 2.0) let add = +++aaa print(add)
swift模板绘图的功能 怪自己太渣 后面没心情 也看不懂了
http://www.cocoachina.com/swift/20151125/14390.html
主要学了关于协议的使用 和对类的进一步认识
还有关于ios的资源
http://www.cocoachina.com/ios/20151210/14635.html