动画 - Core Animation 之 CATransform3D
变更记录
序号
录入时间
录入人
备注
1
2015-03-02
Alfred Jiang
-
2
2015-12-22
Alfred Jiang
-
方案名称动画 - Core Animation 之 CATransform3D
关键字动画 \ Core Animation \ CALayer \ CATransform3D
需求场景
使用 Core Animation 实现动画需求
参考链接
CSDN - iPhone/iOS Core Animation开发总结(CALayer)
Sina - CATransform3D 特效详解
Core Animation编程指南(三)几何变换
博客园 - Core Animation编程指南(译文)(推荐)
Apple documentation - Core Animation Programming Guide(英文好的推荐)
简书 - 干货系列之手把手教你使用Core animation 做动画 (推荐)
《核心动画编程指南》
详细内容#####1. 使用CATransform3D函数
表 1 CAT ...
语法 - 弧度(radians)和角度转换(degree)
变更记录
序号
录入时间
录入人
备注
1
2015-03-02
Alfred Jiang
-
2
2015-12-22
Alfred Jiang
-
方案名称语法 - 弧度(radians)和角度转换(degree)
关键字语法 \ radians \ degree
需求场景
弧度(radians)和角度转换(degree)相互转换
参考链接(无)
详细内容
Swift 解决方案12CGFloat DegreesToRadians(CGFloat degrees) {return degrees * M_PI / 180;};CGFloat RadiansToDegrees(CGFloat radians) {return radians * 180 / M_PI;};
Objective-C 解决方案12345/** Degrees to Radian **/#define degreesToRadians( degrees ) ( ( degrees ) / 180.0 * M_PI )/** Radians to De ...
语法 - 使用字面量
变更记录
序号
录入时间
录入人
备注
1
2015-03-03
Alfred Jiang
-
2
2015-12-22
Alfred Jiang
-
2
2016-02-01
Alfred Jiang
-
方案名称语法 - 使用字面量
关键字语法 \ 字面量 \ 字面值
需求场景
提高代码可读性
参考链接
IOS使用字面值
Swifter - 字面量转换
GitHub - Literally
Clang 3.9 documentation - Objective-C Literals
详细内容#####1. Swift 解决方案
#####NSString
1let aString = "Hello"
#####Number
12let aNumber : NSNumber = 3let aBool : NSNumber = true
#####NSArray
1let anArray = [1,2,3]
#####Dictionary
1let aDictionary = ["key1": "valu ...
测试 - iOS 应用测试 Checklist 以及思维导图
变更记录
序号
录入时间
录入人
备注
1
2015-03-03
Alfred Jiang
-
2
2015-12-22
Alfred Jiang
-
方案名称测试 - iOS 应用测试 Checklist 以及思维导图
关键字测试 \ Checklist \ Test \ 思维导图
需求场景
应用测试
参考链接
GitHub - app-release-checklist
详细内容#####一、 App Development Company Limited
RELEASE AUTHORISATION FORM v1.0
App name
insert content
Version
insert content
Date of submission
insert content
This form is to document the testing that has been done on each appversion before submitting to the App Store. For each item, ind ...
动画 - 页面跳转 - 自定义模态跳转动画
变更记录
序号
录入时间
录入人
备注
1
2015-03-03
Alfred Jiang
-
2
2015-12-22
Alfred Jiang
-
方案名称动画 - 页面跳转 - 自定义模态跳转动画
关键字动画 \ 跳转 \ UINavigationController \ UINavigationControllerDelegate \ UIViewControllerAnimatedTransitioning
需求场景
对页面跳转动画有特殊需求时
参考链接
How To Make A View Controller Transition Animation Like in the Ping App
详细内容#####UINavigationController
Swift 解决方案
定义 NavigationControllerDelegate.swift
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 ...
数据加密 - AES 加密解密
变更记录
序号
录入时间
录入人
备注
1
2015-02-27
Alfred Jiang
-
2
2015-12-22
Alfred Jiang
-
方案名称数据加密 - AES 加密解密
关键字数据加密 \ 加密 \ 解密 \ AES
需求场景
移动端与服务器敏感数据通讯加密需求
移动端本地部分需要保存的敏感数据(NSUserDefaults、文件或数据库)
参考链接
GitHub - NSData+AES.h
GitHub - RNCryptor/RNCryptor:RNCryptor是一个跨语言的AES加密/解密数据格式,最初针对Objective-C,现在已可以使用C、Java、PHP、Python以及Ruby语言。该数据格式包含AES加密所需的所有元数据,同时支持同步和异步读取加密文件,功能十分强大,并且还有详细的文档。
详细内容代码实现如下
NSData+AES.h文件
12345678910111213 /** http://mythosil.hatenablog.com/entry/20111017/1318873155 ht ...
工具 - 使用 VisualJSON 进行 JSON 格式网络接口 API 测试
变更记录
序号
录入时间
录入人
备注
1
2015-03-24
Alfred Jiang
-
2
2015-12-21
Alfred Jiang
-
方案名称工具 - 使用 VisualJSON 进行 JSON 格式网络接口 API 测试
关键字工具 \ Mac 系统 \ MAC OS \ VisualJSON \ 网络请求 \ API \ POST \ GET
需求场景
需要进行返回数据为 JSON 类型的网络接口 API 测试时
参考链接
Appstore下载地址
GitHub - VisualJSON
详细内容#####1. 发送 GET 请求
在 Address 中输入请求连接
点击 Show Details 展开参数输入页
在 File-Value 中输入 GET 请求参数 (亦可直接在QueryData中输入 GET 请求参数)
#####2. 发送 POST 请求
在 Address 中输入请求连接
点击 Show Details 展开参数输入页
在 RawText 中输入 POST Json 格式请求参数
效果图(无)
备注另有 Visu ...
Mac 系统 - Mac OS 运行 Shell 脚本
变更记录
序号
录入时间
录入人
备注
1
2015-03-12
Alfred Jiang
-
2
2015-12-21
Alfred Jiang
-
方案名称Mac 系统 - Mac OS 运行 Shell 脚本
关键字Mac 系统 \ MAC OS \ shell \ 脚本
需求场景
通过shell脚本简化流程时
参考链接
博客园 - mac终端下运行shell脚本
详细内容mac 终端下运行 shell 脚本
1、写好自己的脚本,
比如 aa.sh
2、打开终端执行,
方法一: 输入命令 ./aa.sh ,
方法二:直接把 aa.sh 拖入到终端里面。
注意事项:
如果报出问题:
Permission denied
就是没有权限。
解决办法:
修改该文件 aa.sh 的权限 :
使用命令:
chmod 777 aa.sh
然后再执行上面第二步的操作,就 OK 。
效果图(无)
备注(无)
Mac 系统 - 使用 Automator 批量重命名
变更记录
序号
录入时间
录入人
备注
1
2015-03-10
Alfred Jiang
-
2
2015-12-21
Alfred Jiang
-
方案名称Mac 系统 - 使用 Automator 批量重命名
关键字Mac 系统 \ MAC OS \ Automator \ 批量重命名
需求场景
需要批量重命名文件时
参考链接
强大的机器,Automator工作示例-批量重命名
详细内容
打开 Automator
选择 “服务”
查询 “重命名”
设定重命名规则(应用范围 - 规则)
保存并命名
批量选中文件
右键打开服务
选择命名服务
效果图(无)
备注(无)
Mac 系统 - 修改 Mac OS X root 密码
变更记录
序号
录入时间
录入人
备注
1
2015-03-02
Alfred Jiang
-
2
2015-12-21
Alfred Jiang
-
2
2017-03-28
Alfred Jiang
-
方案名称Mac 系统 - 修改 Mac OS X root 密码
关键字Mac 系统 \ MAC OS \ Root \ 权限
需求场景
需要系统 root 权限安装工具时
参考链接
John Liu Thinks
ITEYE - Mac 忘记root密码的解决方案
详细内容方案1:修改 root 密码
123Mac:~ john$ sudo passwdNew password:Retype new password:
想要 root 的 shell 时候直接 su
123456Mac:~ john$ whoamicxlyxMac:~ john$ suPassword:sh-3.2# whoamiroot
方案2:不修改 root 密码
需要 root 权限的 terminal 时候,输入下面命令,再输入自己当前用户密码
1Mac:~ john$ s ...