Xcode - 插件的安装与使用
变更记录
序号
录入时间
录入人
备注
1
2015-03-25
Alfred Jiang
-
2
2015-12-10
Alfred Jiang
更新 Xcode 7 Alcatraz 安装相关
3
2015-12-23
Alfred Jiang
-
方案名称Xcode - 插件的安装与使用
关键字Xcode \ 插件 \ Alcatraz
需求场景
提高 Xcode 开发效率
参考链接
使用Alcatraz来管理Xcode插件
xcode一些有用的小插件
那些不能错过的Xcode插件
简书 - 在 Xcode 7 中安装 Alcatraz
升级Xcode之后VVDocumenter-Xcode不能用的解决办法
GitHub - alcatraz/Alcatraz
详细内容####1. Xcode 7 Alcatraz 管理包安装方法
#####(1) 关闭 Xcode。
#####(2) 如果你之前安装过 Alcatraz,卸载它。运行命令:
rm -rf ~/Library/Application\ Support ...
NSObject - 实现自定义对象 isEqual 方法
变更记录
序号
录入时间
录入人
备注
1
2015-08-07
Alfred Jiang
-
2
2015-12-23
Alfred Jiang
-
方案名称NSObject - 实现自定义对象 isEqual 方法
关键字NSObject \ 自定义对象 \ 相等 \ isEqual \ Hash
需求场景
需要对自定义对象进行相等判断时
需要对自定义对象数组进行是否包含判断时
参考链接
CSDN - OC判断对象是否相等
CSDN - Objective-C 实现Equality and Hashing
详细内容1234567891011121314@implementation Person- (BOOL)isEqual:(id)object { if (self == object) return YES; if (![object isKindOfClass:[Person class]]) return NO; return [self.name isEqualToString:[object name]];}- (NSUI ...
UIView - iOS 完全复制一个 UIView
变更记录
序号
录入时间
录入人
备注
1
2015-08-27
Alfred Jiang
-
2
2015-12-23
Alfred Jiang
-
方案名称UIView - iOS 完全复制一个 UIView
关键字UIView \ 复制 \ Duplicate
需求场景
需要对一个 UIView 或其子类进行完整复制的操作
参考链接
CSDN - iOS 完全复制UIView
详细内容123456// Duplicate UIView- (UIView*)duplicate:(UIView*)view{ NSData * tempArchive = [NSKeyedArchiver archivedDataWithRootObject:view]; return [NSKeyedUnarchiver unarchiveObjectWithData:tempArchive];}
效果图(无)
备注(无)
Xib - 通过 Xib 加载自定义 View
变更记录
序号
录入时间
录入人
备注
1
2015-08-24
Alfred Jiang
-
2
2015-12-23
Alfred Jiang
-
方案名称Xib - 通过 Xib 加载自定义 View
关键字Xib \ UIView \ 自定义
需求场景
需要实现较为复杂的 View 布局,通过 xib 方式实现
参考链接(无)
详细内容#####1. 通过 File -> New -> File… -> iOS -> Source -> Cocoa Touch Class 创建 View 的 Class 文件
#####2. 在 Class 中输入自定义 View 名称(示例:TestView);在 Subclass of 中输入父类 UIView ; 此处无法勾选 Also create Xib file 选项(不用着急,往下看) ; 选择平台(iPhone / iPad) 和语言(Objective-C / Swift)
#####3. 通过 File -> New -> File… -&g ...
应用间通信 - 文档导入导出实现
变更记录
序号
录入时间
录入人
备注
1
2015-04-25
Alfred Jiang
-
2
2015-12-23
Alfred Jiang
-
方案名称应用间通信 - 文档导入导出实现
关键字应用间通信 \ 文档 \ 文档导入 \ 文档导出 \ 其他应用共享打开
需求场景
需要将自己应用内文档分享到其他应用打开时
需要自己的应用打开其他应用中的文档时
参考链接
Importing & Exporting Documents in iOS
CSDN - iOS App让自己的应用在其他应用中打开列表中显示
详细内容1. 导出自己应用内文档到其他应用打开
ViewController.h
12345678910111213141516//// ViewController.h// test//// Created by Alfred Jiang on 4/25/15.// Copyright (c) 2015 Alfred Jiang. All rights reserved.//#import <UIKit/UIKit.h>@in ...
内购 - iOS 内购的快速实现
变更记录
序号
录入时间
录入人
备注
1
2015-04-25
Alfred Jiang
-
2
2015-12-23
Alfred Jiang
-
方案名称内购 - iOS 内购的快速实现
关键字内购 \ Purchase \ 应用内购买 \ In-App Purchases
需求场景
需要实现应用内购买需求时
参考链接
Cocos2d应用内购买及IAP
GitHub - MKStoreKit
博客园 - In App Purchases 入门[译](原文)
51CTO - iOS应用内置付费:In-App Purchases完全攻略(1)
51CTO - iOS应用内置付费:In-App Purchases完全攻略(2)
Apple documentation - In-App Purchase Programming Guide
MKStoreKit小记
详细内容#####1. 初始化
1[[MKStoreKit sharedKit] startProductRequest];
#####2. 获取 IAP 列表
1234567[[NSNotificat ...
应用间通信 - 实现应用间互相调用与数据传递
变更记录
序号
录入时间
录入人
备注
1
2015-04-26
Alfred Jiang
-
2
2015-12-23
Alfred Jiang
-
方案名称应用间通信 - 实现应用间互相调用与数据传递
关键字应用间通信 \ 调用其他应用 \ 应用间调用
需求场景
需要调用非系统应用时
参考链接
CocoaChina - iOS开发长文–通讯录、蓝牙、内购、GameCenter、iCloud、Passbook系统服务开发汇总
详细内容假设你现在开发了一个应用 A ,如果用户机器上已经安装了此应用,并且在应用 B 中希望能够直接打开 A 。
在 plist 文件中添加 URL types 节点并配置 URL Schemas 作为具体协议,配置 URL identifier 作为这个 URL 的唯一标识,确保应用 A 已经配置了 Url Types ;
使用 openURL 方法打开应用 B
123456789101112131415- (IBAction)thirdPartyApplicationClick:(UIButton *)sender { ...
iOS 系统 - 调用 iOS 系统应用和系统服务
变更记录
序号
录入时间
录入人
备注
1
2015-04-26
Alfred Jiang
-
2
2015-12-23
Alfred Jiang
-
方案名称iOS 系统 - 调用 iOS 系统应用和系统服务
关键字iOS 系统 \ 系统服务 \ 相机 \ 短信 \ 录音 \ 位置服务
需求场景
需要调用 iOS 系统应用和系统服务时
参考链接
CocoaChina - iOS开发长文–通讯录、蓝牙、内购、GameCenter、iCloud、Passbook系统服务开发汇总
博客园 - iOS 8 新特性
详细内容调用系统应用
系统应用
调用方式
电话
tel:或者tel://、telprompt:或telprompt://(拨打电话前有提示)
短信
sms:或者sms://
邮件
mailto:或者mailto://
浏览器
http:或者http://
12345678910111213141516171819202122232425 ...
音视频 - 音频播放、录音、视频播放、拍照、视频录制
变更记录
序号
录入时间
录入人
备注
1
2015-05-05
Alfred Jiang
-
2
2015-12-23
Alfred Jiang
-
方案名称音视频 - 音频播放、录音、视频播放、拍照、视频录制
关键字音视频 \ 音频播放 \ 录音 \ 视频播放 \ 拍照 \ 视频录制
需求场景
需要进行 iOS 音视频录制播放需求的场景
参考链接(见详细内容)
详细内容
博客园 - iOS开发系列–音频播放、录音、视频播放、拍照、视频录制
效果图(无)
备注(无)
openURL - iOS App 跳转 App Store 下载和 App Store 评论
变更记录
序号
录入时间
录入人
备注
1
2015-05-05
Alfred Jiang
-
2
2015-12-23
Alfred Jiang
-
方案名称openURL - iOS App 跳转 App Store 下载和 App Store 评论
关键字openURL \ App Store \ 下载 \ 评论
需求场景
需要进行 iOS 应用下载和应用评论场景
参考链接
Presenting, Appirater
详细内容
版本
跳转App Store 下载
跳转App Store 评论
iOS 7 -
http://itunes.apple.com/app/idAPP_ID
itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=APP_ID
iOS 7 +
http://itunes.apple. ...