UISearchBar - 通过 UISearchDisplayViewController 实现全屏搜索显示效果
变更记录
序号
录入时间
录入人
备注
1
2015-03-23
Alfred Jiang
-
2
2015-12-23
Alfred Jiang
-
方案名称UISearchBar - 通过 UISearchDisplayViewController 实现全屏搜索显示效果
关键字UISearchBar \ UISearchDisplayViewController \ 搜索 \ 查询 \ 全屏搜索
需求场景
实现电机 SearchBar 进入全屏搜索模式的场景
参考链接
CSDN - UISearchDisplayController学习笔记
详细内容#####1. 实例化 UISearchDisplayViewController 对象
1234567891011121314151617@property (nonatomic, strong) UISearchDisplayController *searchController;- (void)addSearchBarAndSearchDisplayController { UISearch ...
数据加密 - MD5 加密
变更记录
序号
录入时间
录入人
备注
1
2015-02-27
Alfred Jiang
-
2
2015-12-22
Alfred Jiang
-
方案名称数据加密 - MD5 加密
关键字数据加密 \ 加密 \ 解密 \ MD5 \ 摘要算法
需求场景
对信息有特殊的 MD5 摘要算法需求
参考链接
Stack Overflow
详细内容NSString+MyAdditions.h
123@interface NSString (MyAdditions)- (NSString *)md5;@end
NSData+MyAdditions.h
123@interface NSData (MyAdditions)- (NSString*)md5;@end
NSString+MyAdditions.m
123456789101112131415161718#import "MyAdditions.h"#import <CommonCrypto/CommonDigest.h> // Need to import for CC_MD5 ...
二维码 - QRCode 生成与识别
变更记录
序号
录入时间
录入人
备注
1
2015-03-12
Alfred Jiang
-
2
2015-12-22
Alfred Jiang
-
方案名称二维码 - QRCode 生成与识别
关键字二维码 \ QRCode \ 扫描 \ 识别
需求场景
需要使用到二维码的扫描与识别场景
参考链接
Stack Overflow - How to use C code (libqrencode) in an iOS project
CSDN - iOS自带扫描 和 生成二维码
ITEYE - 在iOS和Android中使用二维码ZXing库及常见问题解决和整合后的代码
详细内容
ZBar
ZXing
ibqrencode 生成二维码 配合 iOS 7 自带扫描QRCode
AMScanViewController.h
12345678910111213141516171819202122232425262728293031323334//// AMScanViewController.h////// Created by Alexander Mack on ...
特殊控件 - 雷达图(蛛网图、五行图)解决方案
变更记录
序号
录入时间
录入人
备注
1
2015-03-17
Alfred Jiang
-
2
2015-12-22
Alfred Jiang
-
方案名称特殊控件 - 雷达图(蛛网图、五行图)解决方案
关键字特殊控件 \ 雷达图 \ 蛛网图 \ 五行图
需求场景
绘制雷达图需求时
参考链接(见详细内容)
详细内容#####1. GitHub - BTSpiderPlotterView#####2. GitHub - JYRadarChart
效果图
备注(无)
应用间通信 - App 之间共享数据的几种方法
变更记录
序号
录入时间
录入人
备注
1
2015-03-17
Alfred Jiang
-
2
2015-12-22
Alfred Jiang
-
方案名称应用间通信 - App 之间共享数据的几种方法
关键字应用间通信 \ 文档 \ App共享 \ 分享数据 \ 应用程序间通信
需求场景
需要分享文档到另一个文件中打开时
参考链接
iOS app之间共享数据的几种方法
Enharmonic - Sharing Data Locally Between iOS Apps
详细内容#####1. UIDocumentInteractionController
#####2. UIActivityViewController
参考一
参考二
#####3. Shared Keychain Access
这个要求app之间用的是同样的证书
#####4. Custom URL Scheme
通过构造URL,把数据作为参数传递过去
参考一
#####5. Web Service 通过 dropbox 或者其他第三方的服务来共享数据
#####6. UIPasteboa ...
UIView - 代码实现截图功能
变更记录
序号
录入时间
录入人
备注
1
2015-03-17
Alfred Jiang
-
2
2015-05-07
Alfred Jiang
-
3
2015-12-22
Alfred Jiang
-
方案名称UIView - 代码实现截图功能
关键字UIView \ 代码截图 \ 截图 \ 页面图片截取
需求场景
需要在应用内对某个 View 进行截图操作时
参考链接
CSDN - IOS开发之—程序截图
Stack Overflow - Screenshot in swift iOS?
详细内容#####1. 经典 Objective-C 解决方案
12345678910111213141516171819202122232425//获得View图像- (UIImage *)imageFromView:(UIView *)theView{ UIGraphicsBeginImageContext(theView.frame.size); CGContextRef context = UIGraphicsGetCurrentCont ...
Xcode - 调试相关
变更记录
序号
录入时间
录入人
备注
1
2015-03-18
Alfred Jiang
-
2
2015-12-07
Alfred Jiang
更新约束警告调试
3
2015-12-22
Alfred Jiang
-
4
2016-01-04
Alfred Jiang
-
方案名称Xcode - 调试相关
关键字Xcode \ Debug \ Crash
需求场景
调试常见问题收集
参考链接
Debugging iOS AutoLayout Issues
博客园 - iOS 各种调试技巧豪华套餐
详细内容#####1. unrecognized selector sent to instance 问题快速定位的方法
方法一:在 Debug 菜单中选择 Breakpoints -> Create Symbolic Breakpoint ,在 Symbol 中填写如下方法签名:*-[NSObject(NSObject) doesNotRecognizeSelector:]* ,然后再运行,错误时断点会停在真正导致崩溃的地方。
方法二:添加 Excep ...
iOS 系统 - 使用 ClusterPrePermissions 更加友好的提示授权操作
变更记录
序号
录入时间
录入人
备注
1
2015-03-18
Alfred Jiang
-
2
2015-12-22
Alfred Jiang
-
方案名称iOS 系统 - 使用 ClusterPrePermissions 更加友好的提示授权操作
关键字iOS 系统 \ 系统权限 \ 授权 \ 通讯录 \ 相册 \ 地址
需求场景
需要用户授权通讯录、相册、地址等信息时提前增加提示
参考链接
GitHub - ClusterPrePermissions
详细内容使用方法
1234567891011121314ClusterPrePermissions *permissions = [ClusterPrePermissions sharedPermissions];[permissions showPhotoPermissionsWithTitle:@"Access your photos?" message:@"Your message here" ...
特殊控件 - 使用 RecordingCircleOverlayView 实现环形记录仪动画
变更记录
序号
录入时间
录入人
备注
1
2015-03-18
Alfred Jiang
-
2
2015-12-22
Alfred Jiang
-
方案名称特殊控件 - 使用 RecordingCircleOverlayView 实现环形记录仪动画
关键字特殊控件 \ 动画 \ record \ 环形 \ 记录
需求场景
录音或者录像显示进度动画
参考链接
Spark Camera’s recording meter
GitHub - SparkRecordingCircle
详细内容#####1. RecordingCircleOverlayView.h
1234567891011121314151617//// RecordingCircleOverlayView.h// SparkRecordingCircle//// Created by Sam Page on 1/02/14.// Copyright (c) 2014 Sam Page. All rights reserved.//#import <UIKit/UIKit.h>@ ...
特殊控件 - 使用 SubjectiveCPhotoPanner 实现动作感应显示图片
变更记录
序号
录入时间
录入人
备注
1
2015-03-18
Alfred Jiang
-
2
2015-12-22
Alfred Jiang
-
方案名称特殊控件 - 使用 SubjectiveCPhotoPanner 实现动作感应显示图片
关键字特殊控件 \ 动画 \ 图片显示 \ 动作
需求场景
用于展示一些较大图片,实现较为炫酷的效果
参考链接
Facebook Paper’s tilting panner
GitHub - SubjectiveCPhotoPanner
GitHub - SubjectiveCPhotoPanner_Swift
详细内容#####1. SCImagePanScrollBarView.h
12345678910111213141516//// SCImagePanScrollBarView.h// SubjectiveCImagePan//// Created by Sam Page on 16/02/14.// Copyright (c) 2014 Sam Page. All rights reserved./ ...