专题 - iOS 开发第三方代码库参考
变更记录
序号
录入时间
录入人
备注
1
2015-03-18
Alfred Jiang
-
2
2015-12-21
Alfred Jiang
-
方案名称专题 - iOS 开发第三方代码库参考
关键字专题 \ iOS 开发 \ 第三方库
需求场景
需要第三方库快速实现业务需求
参考链接(见详细内容)
详细内容#####代码库
Github - iOS备忘
Code4App
CocoaChina 代码库
OSChina 代码库
DevDiv 代码库
######第三方库
27 iOS open source libraries to skyrocket your development.
CocoaChina - 超全!整理常用的iOS第三方资源
######第三方组件
GitHub - CoreStore : Core Data 是 Apple 官方的数据关系图框架
GitHub - LeeGo : LeeGo 是一个尝试使用声明式的,可配置的和易复用的 UI 组件进行用户界面开发的方式
GitHub - Palau : 用类型安全的方式对 NSUs ...
测试 - iOS 自动化测试框架介绍
变更记录
序号
录入时间
录入人
备注
1
2015-04-27
Alfred Jiang
-
2
2015-12-21
Alfred Jiang
-
方案名称测试 - iOS 自动化测试框架介绍
关键字测试 \ 自动化测试框架
需求场景
需要对 iOS 项目进行自动化测试时
参考链接
iOS自动化测试工具总览
IOS 下自动化测试框架 GHUnit 和 OCMock 初探 [一]
APPIUM框架-IOS原生APP自动化测试
iOS的OCUnit测试框架
基于instruments-Automation的iOS应用UI自动化测试图文攻略
这些年用过的iOS测试框架
详细内容
名称
简介
官网
参考链接
Appium
Appium是一个开源、跨平台的测试框架,可以用来测试原生及混合的移动端应用。
appium.io
1. IOS、Android自动化测试框架Appium概述2. ios界面自动化工具–Appium
Automation
苹果官方自动化测试工具,包含在 Instruments 中
Automating UI Testing
如何使用UI ...
专题 - 时间戳的介绍与使用
变更记录
序号
录入时间
录入人
备注
1
2015-04-28
Alfred Jiang
-
2
2015-12-21
Alfred Jiang
-
方案名称专题 - 时间戳的介绍与使用
关键字专题 \ Mac 系统 \ MAC OS \ 时间戳 \ Unix timestamp
需求场景
服务器与客户端进行时间同步
参考链接
关于Unix时间戳(Unix timestamp)
详细内容时间戳是自 1970 年 1 月 1 日(00:00:00 GMT)以来的秒数。它也被称为 Unix 时间戳(Unix Timestamp)。
Unix时间戳(Unix timestamp),或称Unix时间(Unix time)、POSIX时间(POSIX time),是一种时间表示方式,定义为从格林威治时间1970年01月01日00时00分00秒起至现在的总秒数。Unix时间戳不仅被使用在Unix系统、类Unix系统中,也在许多其他操作系统中被广泛采用。
如何在不同编程语言中获取现在的Unix时间戳(Unix timestamp)?
语言
代码
Java
tim ...
Mac 系统 - 使用 Scp 命令上传下载文件
变更记录
序号
录入时间
录入人
备注
1
2015-04-22
Alfred Jiang
-
2
2015-12-21
Alfred Jiang
-
方案名称Mac 系统 - 使用 Scp 命令上传下载文件
关键字Mac 系统 \ MAC OS \ Scp \ 上传下载文件
需求场景
上传本地文件至服务器或者从服务器下载文件
参考链接
Linux SSH远程文件/目录传输命令scp
详细内容#####1. 使用如下的命令上传本地文件至服务器
scp -P 22 -r ~/Documents/…/* viktyz@120.27.34.52:/var/www/html/iOSBook
#####2. 使用如下的命令下载服务器文件至本地
scp -P 22 -r vikt ...
工具 - 使用 Cutterman 插件进行快速切图
变更记录
序号
录入时间
录入人
备注
1
2015-03-25
Alfred Jiang
-
2
2015-12-21
Alfred Jiang
-
方案名称工具 - 使用 Cutterman 插件进行快速切图
关键字工具 \ Cutterman \ Photoshop \ 切图 \ 插件
需求场景
需要 PSD 文件自己切图时
参考链接
Cutterman 官网
详细内容以 Adobe Photoshop CC 2014 为例
#####1. 进入 Cutterman 网站 下载 对应系统和版本的 Cutterman 插件#####2. 安装 Adobe Extension Manager#####3. 升级 Adobe Extension Manager 至7.2+#####4. 通过 Adobe Extension Manager 安装 Cutterman 插件#####5. 注册 Cutterman 账号 并使用插件#####6. 查看 更多帮助
效果图(无)
备注(无)
版本兼容 - 7\8 - 无法正确获取 iPad 横竖屏宽高解决方案
变更记录
序号
录入时间
录入人
备注
1
2015-10-26
Alfred Jiang
-
2
2015-12-18
Alfred Jiang
-
方案名称版本兼容 - 7\8 - 无法正确获取 iPad 横竖屏宽高解决方案
关键字版本兼容 \ iPad \ 横竖屏 \ 宽高
需求场景
需要获取横竖屏宽高时
参考链接
CocoaChina - 主题 : iPad下ios7的app.window一直是竖屏,怎么设置横屏
详细内容12345678910111213141516171819202122232425// 检测版本inline static int CHECK_IOS() { int v = [[getOsVersion() substringToIndex:3] floatValue] * 10; return v;}#pragma mark - Use to get corrent screen bounds- (BOOL)isLandscape { UIInterfaceOrientation orientation ...
UIView \ UIButton - 独占响应事件
变更记录
序号
录入时间
录入人
备注
1
2015-10-26
Alfred Jiang
-
2
2015-12-18
Alfred Jiang
-
方案名称UIView \ UIButton - 独占响应事件
关键字UIView \ UIButton \ 独占响应事件 \ 同时点击
需求场景
避免两个按钮(UIButton)很近的时候同时触发事件
避免同时点击多个按钮(UIButton)
参考链接
IOS 开发两个按钮(button)很近的时候同时触发事件解决的方法(setExclusiveTouch)
UIView独占响应事件
详细内容1234567891011121314151617_button1 = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];[self.view addSubview:_button1];_button1.backgroundColor = [UIColor redColor];[_button1 addTarget:self act ...
数据存储 - 序列化对象
变更记录
序号
录入时间
录入人
备注
1
2015-03-02
Alfred Jiang
-
2
2015-12-18
Alfred Jiang
-
方案名称数据存储 - 序列化对象
关键字数据存储 \ 序列化对象 \ NSKeyedArchiver \ NSJSONSeriali \ 文件存储
需求场景
需要文件存储对象数据时
部分序列化对象需求
参考链接
GitHub - NSSerialisationTests
详细内容通过NSKeyedArchiver和NSJSONSeriali的对比测试说明序列化对象的一些基本操作和用途
Model.h1234567891011121314151617181920//// Model.h// Serialisation Test//// Created by Johnnie Walker on 09/05/2013.// Copyright (c) 2013 Random Sequence. All rights reserved.//#import <Foundation/Foundation.h&g ...
编码规范 - iOS 编码规范(Objective-C & Swift)
变更记录
序号
录入时间
录入人
备注
1
2015-03-18
Alfred Jiang
-
2
2015-12-20
Alfred Jiang
-
3
2016-02-14
Alfred Jiang
-
4
2023-08-13
Alfred Jiang
-
方案名称编码规范 - iOS 编码规范(Objective-C & Swift)
关键字编码规范 \ Objective-C \ Swift
需求场景
统一团队编码风格,提高工程代码可读性与可维护性
参考链接(见详细内容)
详细内容Objective-C
GitHub Objective-C Style Guide - Style guide & coding conventions for Objective-C projects.
Google Objective-C Style Guide.
Macoscope Objective-C Style Guide - Our code style guidelines.
NYTimes Objective-C Style Guide ...
数据加密 - 使用 NAVAJO 进行密码安全强度检测
变更记录
序号
录入时间
录入人
备注
1
2015-03-02
Alfred Jiang
-
2
2015-12-18
Alfred Jiang
-
方案名称数据加密 - 使用 NAVAJO 进行密码安全强度检测
关键字数据加密 \ 密码强度 \ 输入检测 \ 安全检测 \ NAVAJO
需求场景
对用户注册密码进行安全强度检测
参考链接
GitHub - Navajo
详细内容123456789101112NSString *password = @"abc123"NJOPasswordValidator *validator = [NJOPasswordValidator standardValidator];NSArray *failingRules = nil;BOOL isValid = [validator validatePassword:password failingRules:&failingRules];if (!isValid) { fo ...