2015年3月16日

IOS之GCD

摘要: GCD是Grand Central Dispatch的简称,它是基于语言的,用来解决多核并行运算。使用GCD,线程完全由系统进行管理,不需要再编写线程代码。GCD的核心是:将长期运行的任务拆分成多个工作单元,并将这些单元添加到dispatch queue中,系统会为我们管理这些dispatch qu... 阅读全文

posted @ 2015-03-16 14:01 sfce 阅读(262) 评论(0) 推荐(0) 编辑

2015年3月11日

IOS之NSOperationQueue

摘要: 一个NSOperation对象可以通过start方法来执行任务,默认是同步执行的,可以将NSOperation加入到一个NSOperationQueue中去异步执行。创建操作队列:NSOperationQueue *queue = [[NSOperationQueue alloc] init];添加... 阅读全文

posted @ 2015-03-11 09:52 sfce 阅读(516) 评论(0) 推荐(0) 编辑

2015年3月9日

IOS之NSOperation

摘要: 一、NSOperation 1.简介NSOperation实例封装了需要执行的操作和执行操作所需的数据,并且能够以并发或非并发的方式执行这个操作。NSOperation本身是抽象基类,因此必须使用它的子类,使用NSOperation子类的方式有两种:a.Foundation框架提供了两个具体子类直... 阅读全文

posted @ 2015-03-09 09:24 sfce 阅读(205) 评论(0) 推荐(0) 编辑

2015年3月6日

IOS之NSThread

摘要: 初始化:1.动态方法- (id)initWithTarget:(id)target selector:(SEL)selector object:(id)argument;// 初始化线程NSThread *thread = [[NSThread alloc] initWithTarget:self ... 阅读全文

posted @ 2015-03-06 18:00 sfce 阅读(124) 评论(0) 推荐(0) 编辑

IOS之NSNotification

摘要: NSNotificationCenter是专门供程序中不同类间的消息通信而设置的.注册通知:[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(mytest:) name:@"mytest" objec... 阅读全文

posted @ 2015-03-06 17:45 sfce 阅读(113) 评论(0) 推荐(0) 编辑

ios之KVC、KVO

摘要: KVC是KeyValueCoding的简称,它是一种可以直接通过字符串的名字(key)来访问类属性的机制。而不是通过调用Setter、Getter方法访问。获取值- (id)valueForKey:(NSString *)key;- (id)valueForKeyPath:(NSString *)k... 阅读全文

posted @ 2015-03-06 17:40 sfce 阅读(164) 评论(0) 推荐(0) 编辑

2015年3月3日

ios使用dispatch_group_async和dispatch_group_notify异步转同步

摘要: http://www.dreamingwish.com/article/gcd介绍(二)-多核心的性能.htmldispatch_queue_t queue = dispatch_get_global_qeueue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);dispat... 阅读全文

posted @ 2015-03-03 15:43 sfce 阅读(549) 评论(0) 推荐(0) 编辑

2015年2月1日

cocoapods

摘要: 如何安装?1.安装ruby环境,添加淘宝ruby镜像$ gem sources --remove https://rubygems.org///等有反应之后再敲入以下命令$ gem sources -a http://ruby.taobao.org/2.查看是否设置成功:$ gem sources ... 阅读全文

posted @ 2015-02-01 17:25 sfce 阅读(487) 评论(0) 推荐(0) 编辑

2015年1月19日

使用adb查看已安装程序的包信息

摘要: adb shell dumpsys package com.asiainfo.cm10085 阅读全文

posted @ 2015-01-19 21:20 sfce 阅读(642) 评论(0) 推荐(0) 编辑

2015年1月13日

xcode快捷键

摘要: sfce Commands sfce Duplicate Current Line selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward: ... 阅读全文

posted @ 2015-01-13 17:43 sfce 阅读(121) 评论(0) 推荐(0) 编辑

导航