一、Swift基础操作导入框架OC是#import<UIKit/UIKit.h>Swift是importUIKitswift定义标示符:必须指定是常量还是变量var(变量)/let(常量)标识符的名称:标识符的类型=初始化值vara:Int=10;a=29;b=3.11错误写法(类型不对)letb:Double=3.14;3.语句结束后可以不跟;前提:一行..
分类:
编程语言 时间:
2016-09-07 23:14:00
阅读次数:
168
Movie:13 Sunshine Cleaning Everything and Nothing Let The Bullets Fly Lock, Stock and Two Smoking Barrels Time Raiders Love O2O Triangle Whispers and ...
分类:
其他好文 时间:
2016-09-07 12:34:33
阅读次数:
126
swift中数组用[]表示 1.创建一个空数组 let emptyArr = [String]() let emptyArr1 : [NSNumber] = [] 这两种方式都可以 2.访问元素 var numArr=["1","2","3"] println("第一个元素:\(test1Array ...
分类:
编程语言 时间:
2016-09-07 12:31:09
阅读次数:
137
绘制聊天小三角 1.先创建一个UIView, 并添加在父视图上 let blankView = UIView(frame: CGRectMake(100, 100, 100, 100)) blankView.backgroundColor = UIColor.greenColor() blankVi ...
分类:
其他好文 时间:
2016-09-07 10:31:40
阅读次数:
168
In normal Javascript, we do undefine check or null check: Sometime backend data return may contain or not contain 'name' prop. So let's see how to def ...
分类:
编程语言 时间:
2016-09-07 06:54:21
阅读次数:
181
1. This write "Hello" to the screen with a new line tailed to. Just like puts, but without new line. 2. This output the string length. "wonS noJ" Let' ...
分类:
其他好文 时间:
2016-09-06 00:56:03
阅读次数:
179
本文转发自:http://blog.chinaunix.net/uid-20655530-id-1589483.html 学习 SIP 协议最快捷的方法是通过范例来学习, 找到了一个完整的呼叫流程,let's go! INVITE 主叫方Tesla首先发起 INVITE 消息到被叫方Marconi。 ...
分类:
其他好文 时间:
2016-09-04 17:32:36
阅读次数:
208
原文阅读请点击此处 一、let和const 二、字符串 三、函数 四、对象 五、Set和Map 六、Iterator和Generator 七、Promise和async 八、class 九、Module ...
分类:
其他好文 时间:
2016-09-04 12:53:33
阅读次数:
167
Parencodings Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 24932 Accepted: 14695 Description Let S = s1 s2...s2n be a well-formed string ...
分类:
其他好文 时间:
2016-09-03 22:33:04
阅读次数:
157
常见的关键字有以下4种 与声明有关的关键字:class、deinit、enum、extension、func、import、init、let、protocol、static、struct、subscript、typealias和var。 与语句有关的关键字:break、case、continue、d ...
分类:
编程语言 时间:
2016-09-02 11:18:33
阅读次数:
250