摘要: 修改下origanization即可 阅读全文
posted @ 2015-09-15 20:46 JonyFang 阅读(178) 评论(0) 推荐(1) 编辑
摘要: NSDate *date = [NSDate date];//日期格式化类NSDateFormatter *formatter = [[NSDateFormatter alloc] init];//y年 M月 d日//m分 s秒 H(24)时 h(12)时//2015-08-15 22:30:30f... 阅读全文
posted @ 2015-08-15 22:46 JonyFang 阅读(124) 评论(0) 推荐(0) 编辑
摘要: NSNumberNSNumber *n = [NSNumber numberWithDouble:10.5];int d = [n doubleValue];int a = 20;NSString *str = [NSString stringWithFormate:@"%d", a];//stri... 阅读全文
posted @ 2015-08-15 18:47 JonyFang 阅读(207) 评论(0) 推荐(0) 编辑
摘要: NSDictionarykey --->value索引 --->内容存储键值对(1)三种创建方式:NSDictionary *dict = [NSDictionary dictionaryWithObject:@"Jony" forKey:@"name"]; NSArray *keys = @[@... 阅读全文
posted @ 2015-08-15 16:40 JonyFang 阅读(144) 评论(0) 推荐(0) 编辑
摘要: NSSet *s = [NSSet set];NSSet *s2 = [NSSet setWithObjective:@"a", @"b", @"c", nil];NSString *s3 = [s3 anyObject];NSMutableSet *s = [NSMutableSet set];[... 阅读全文
posted @ 2015-08-15 16:29 JonyFang 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 问题1:# Please enter a commit message to explain why this merge is necessary,# especially if it merges an updated upstream into a topic branch.## Lines ... 阅读全文
posted @ 2015-08-04 00:10 JonyFang 阅读(5277) 评论(0) 推荐(0) 编辑
摘要: #define HMGlobalQueue dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)#define HMMainQueue dispatch_get_main_queue()dispatch_async(HMGloba... 阅读全文
posted @ 2015-07-31 09:48 JonyFang 阅读(245) 评论(0) 推荐(0) 编辑
摘要: GCD2-- 队列使用asunc异步并发: // 获得全局的并发队列 dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); // 将 任务 添加 全局队... 阅读全文
posted @ 2015-07-30 10:49 JonyFang 阅读(142) 评论(0) 推荐(0) 编辑
摘要: GCD--Grand Central Dispatch纯C,提供非常多强大的函数GCD优势:1.是苹果公司为多核的并行运算提出的解决方案2.自动利用更多的CPU内核(如双核)3.自动管理线程的生命周期(创建、调度、销毁)4.只需告诉GCD需要执行的任务,不需编写线程管理代码任务和队列任务:执行什么操... 阅读全文
posted @ 2015-07-29 14:58 JonyFang 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 一、NSThread1、创建和启动3种方式1>先创建,后启动//创建NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@selector(download:) object:@"http://XXX"];//启动[th... 阅读全文
posted @ 2015-07-29 08:18 JonyFang 阅读(120) 评论(0) 推荐(0) 编辑