上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页
摘要: 1、可选项 一般也叫可选类型,它允许将值设置为nil 在类型名称后面加个问号? 来定义一个可选项 2、强制解包(Forced Unwrapping) 可选项是对其他类型的一层封装,可以理解它为一个盒子 如果为nil,那么他就是空盒子 如果不为nil,那么盒子里装的是:被包装的数据类型 3、可选项绑定 阅读全文
posted @ 2019-08-14 18:02 ZhangShengjie 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 1、基本用法 //enum direction { // case north // case south // case west // case east //} 等价于下面写法 enum direction { case north,south,west,east } var dir = di 阅读全文
posted @ 2019-08-12 17:54 ZhangShengjie 阅读(1226) 评论(0) 推荐(0) 编辑
摘要: 1、函数的定义 2、隐式返回 3、元组返回、实现多返回值 4、参数标签 5、默认参数值 6、可变参数 7、Swift 自带的 print 函数 8、 inout 可以用inout定义一个输入输出参数:可以在函数内部修改外部实参的值 可变参数不能标记为inout inout参数不能有默认值 inout 阅读全文
posted @ 2019-08-08 18:08 ZhangShengjie 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 1、if else 注意:if 后面的小括号可以省略、条件后面的大括号不能省略 if 条件后面只能跟bool类型 2、while repeat while 相当于c语言中的do while 这里不用age-- 是因为从swift3开始,去除了自增(++)、自减(--)运算符 3、for let na 阅读全文
posted @ 2019-07-24 18:03 ZhangShengjie 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1. var 定义变量 let 定义常量 2、定义变量和常量如果初始化不赋值 那么必须声明其数据类型 如 var a : Int 3、常量 let 它的值不要求在编译时期确定,但是使用之前必须赋值一次 // 布尔 let bool = true //字符串 let string = "123" // 阅读全文
posted @ 2019-07-10 17:36 ZhangShengjie 阅读(166) 评论(0) 推荐(0) 编辑
摘要: AVAsset *asset = [AVAsset assetWithURL:url]; NSArray *tracks = [asset tracksWithMediaType:AVMediaTypeVideo]; AVAssetTrack *videoTrack = tracks[0]; CGSize videoSize = CGSizeApplyAffineTran... 阅读全文
posted @ 2019-05-06 19:15 ZhangShengjie 阅读(672) 评论(0) 推荐(0) 编辑
摘要: 1、GitHub下载是指向了Amazon的服务器 下载地址是http://github-cloud.s3.amazonaws.com/ 解决方案是更改host文件,使该域名指向香港的服务器 2、去 https://www.ipaddress.com/ 查看 github.com和github.glo 阅读全文
posted @ 2019-04-23 11:37 ZhangShengjie 阅读(5025) 评论(0) 推荐(0) 编辑
摘要: 1 Clutch 使用 下载地址 : https://github.com/kjcracks/clutch/releases 下载之后去掉去掉版本号 拖入手机的 /usr/bin/ 目录下 执行 chmod +x /usr/bin/Clutch 赋予权限 之后执行命令查看能脱壳的IPA 之后Clut 阅读全文
posted @ 2019-04-18 23:21 ZhangShengjie 阅读(2214) 评论(2) 推荐(0) 编辑
摘要: 修改deb.mk文件第6行的压缩方式为gzip 阅读全文
posted @ 2019-04-14 17:02 ZhangShengjie 阅读(848) 评论(0) 推荐(0) 编辑
摘要: 将如下去 多余文件删除就可以了 阅读全文
posted @ 2019-04-13 17:34 ZhangShengjie 阅读(672) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页