上一页 1 ··· 3 4 5 6 7 8 9 10 下一页

2016年4月22日

摘要: 1 // 2 // LYHSingleTon.h 3 // 07-单例的宏定义实现 4 // 5 // Created by mac on 16/4/22. 6 // Copyright © 2016年 mac. All rights reserved. 7 // 8 9 #ifndef LYHSingleTon_h 10 #define LYHSingleTon_h... 阅读全文
posted @ 2016-04-22 14:37 爱你久久iOS 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1 // 2 // ViewController.m 3 // 01-单例设计模式 4 // 5 // Created by mac on 16/4/22. 6 // Copyright © 2016年 mac. All rights reserved. 7 // 8 #import "LYMusicTool.h" 9 10 #import "Vi... 阅读全文
posted @ 2016-04-22 12:57 爱你久久iOS 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1 // 2 // LYMusicTool.m 3 // 01-单例设计模式 4 // 5 // Created by mac on 16/4/22. 6 // Copyright © 2016年 mac. All rights reserved. 7 8 //alloc的本质是调用:-->>allocWithZone:方法 9 10 #import "LYMusi... 阅读全文
posted @ 2016-04-22 10:50 爱你久久iOS 阅读(155) 评论(0) 推荐(0) 编辑

2016年4月21日

摘要: 1 // 2 // ViewController.m 3 // 07-合并图片 4 // 5 // Created by mac on 16/4/21. 6 // Copyright © 2016年 mac. All rights reserved. 7 // 8 // NSURL *url = [NSURL URLWithString:@"http://h.hip... 阅读全文
posted @ 2016-04-21 15:54 爱你久久iOS 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1 // 2 // ViewController.m 3 // 06一次性代码-GCD 4 // 5 // Created by mac on 16/4/21. 6 // Copyright © 2016年 mac. All rights reserved. 7 // 8 9 #import "ViewController.h" 10 11 @interface V... 阅读全文
posted @ 2016-04-21 15:15 爱你久久iOS 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 1 // 2 // ViewController.m 3 // 05-GCD延迟调用 4 // 5 // Created by mac on 16/4/21. 6 // Copyright © 2016年 mac. All rights reserved. 7 // 8 9 #import "ViewController.h" 10 11 @interface Vi... 阅读全文
posted @ 2016-04-21 14:30 爱你久久iOS 阅读(157) 评论(0) 推荐(0) 编辑
摘要: // // ViewController.m // 03-GCD-线程间通信 // // Created by mac on 16/4/21. // Copyright © 2016年 mac. All rights reserved. // #define GlobalQueue dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEF... 阅读全文
posted @ 2016-04-21 11:13 爱你久久iOS 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 桥接字符串 阅读全文
posted @ 2016-04-21 10:00 爱你久久iOS 阅读(390) 评论(0) 推荐(0) 编辑
摘要: // // ViewController.m // GCD // // Created by mac on 16/4/21. // Copyright © 2016年 mac. All rights reserved. // #import "ViewController.h" @interface 阅读全文
posted @ 2016-04-21 07:15 爱你久久iOS 阅读(254) 评论(0) 推荐(0) 编辑

2016年4月20日

摘要: Objective-C中的锁及应用 在多线程编程中,锁是非常重要的工具,而Objective-C提供了好几种不同类型的锁,下面就来看一下这些锁都是怎么用的。 0. POSIX Mutex Lock Mutex lock也就是互斥锁,是Unix/Linux平台上提供的一套同步机制。互斥锁提供了三个函数,从函数名就可以知道他们的作用: int pthread_mutex_lock(pthre... 阅读全文
posted @ 2016-04-20 23:40 爱你久久iOS 阅读(248) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页

导航