文档生成工具 appledoc

摘要: 参考文章1、安装:$ git clone git://github.com/tomaz/appledoc.git$ cd appledoc$ sudo sh install-appledoc.sh2、注释添加规则:1)多行注释 /** 多行注释 (/* 不会被捉取 */)*/2) 单行注释//// 单行注释 // 不会被捉取3) @brief 简要说明 @param 参数说明 @param name description @return 返回值说明 @exception 描述 exception4)对于同一个方法不能出现两个或两个以上地方的文档注释,否则.h文件里的注释会覆... 阅读全文
posted @ 2014-02-16 14:36 EileenLeung 阅读(249) 评论(0) 推荐(0) 编辑

CocoaPods 学习

摘要: 参考文章 git address 一、简介:CocoaPods是一个负责管理 iOS项目中第三方开源代码的工具。 二、安装与更新 1、安装 2、更新 // 如果出现下载很慢,可以到 github 上下载 cocoapods,解压后文件夹重命名为 master,并拷贝到 ~/.cocoapods 目录 阅读全文
posted @ 2014-02-16 11:43 EileenLeung 阅读(551) 评论(0) 推荐(0) 编辑

UISearchBar cover first cell of UITableView

摘要: 1、相当重要的是tableView.tableHeaderView = searchBar;这一句一定要在 UIViewControllerviewDidLoad 的时候执行,否则就会出现 search bar 覆盖第一个 cell 情况出现。2、如果想要达到 weibo 的 搜索的那种点了 sea... 阅读全文
posted @ 2014-02-11 15:25 EileenLeung 阅读(259) 评论(0) 推荐(0) 编辑

多线程

摘要: 一、NSOperation NSOperation 是 apple 封装过更高级,而 GCD 是相对底层的,一般建议不建议使用底层代码实现。 推荐文章 推荐文章2 阅读全文
posted @ 2014-02-05 16:33 EileenLeung 阅读(116) 评论(0) 推荐(0) 编辑

NSURLSession

摘要: 参考文章1, apple文档一、NSURLSessionConfiguration 介绍:分别配置每一个 session 对象。(NSURLConnection 很难做到) 分类: 1)defaultSessionConfiguration:默认 session 配置,类似 NSURLConnection 的标准配置,使用硬盘来存储缓存数据。 2)backgroundSessionConfiguration:后台session配置,与默认配置类似,不同的是会在后台开启另一个线程来处理网络数据。 注意: 这里如果设置了超时限制的话,可能会导致一直下载失败。因为后台下载会... 阅读全文
posted @ 2014-01-25 22:19 EileenLeung 阅读(699) 评论(5) 推荐(0) 编辑

Device ID

摘要: 参考文章一、CFUUID (Deprecated)二、UDID (Deprecated)三、NSUUID (ios6.0 and later)NSString *uuid = [[NSUUID UUID] UUIDString]; 1) 每次调用都会返回不同的值。四、Advertiser Identifier (ios6.0 and later)NSString *adId = [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString]; 1) 需要AdSupport.framework 2) 除了以下... 阅读全文
posted @ 2014-01-09 23:23 EileenLeung 阅读(747) 评论(0) 推荐(1) 编辑

ios 消息传递机制

摘要: 引用文章一、KVO 1、当对象中的某个属性值发生了改变,可以对这些值的观察者做出通知。 2、接受者(会接收到值发生改变的消息)必须知道发送者(值将发生改变的那个对象)。 3、接收者同样还需要知道发送者的生命周期,因为在销毁发送者对象之前,需要取消观察者的注册。 二、KVC 1、简介 ... 阅读全文
posted @ 2014-01-07 12:07 EileenLeung 阅读(347) 评论(0) 推荐(0) 编辑

AppDelegate

摘要: 一、基础知识 1)main.m指定了程序的入口点UIApplicationMain(argc, argv,nil,NSStringFromClass([StartingPointAppDelegateclass])); 2)AppDelegate的入口点- (BOOL)application:(... 阅读全文
posted @ 2014-01-04 22:25 EileenLeung 阅读(285) 评论(0) 推荐(0) 编辑

编译运行错误汇集

摘要: 1、error: can't allocate region 死循环导致内存不足 2、wait_fences: failed to receive reply: 10004003 (还没有找到原因) 3、 file is universal (3 slices) but does not conta 阅读全文
posted @ 2014-01-04 17:50 EileenLeung 阅读(1339) 评论(0) 推荐(0) 编辑

Difference Search Path

摘要: 1、Framework Search Path where to searchframeworks(.frameworkbundles) in addition to system frameworks paths. Not used very much in iOS development, officially there is no developer iOS frameworks.2、Header Search Path where to search for header files (.hfiles) in addition to system paths. Usual... 阅读全文
posted @ 2014-01-04 17:31 EileenLeung 阅读(199) 评论(0) 推荐(0) 编辑