摘要: #import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // NSOperation 的... 阅读全文
posted @ 2015-09-05 00:22 记忆里的那座沙城 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 单例 阅读全文
posted @ 2015-09-04 22:07 记忆里的那座沙城 阅读(98) 评论(0) 推荐(0) 编辑
摘要: /*------------------------------ GCD使用 1.队列和任务------------------------------------------*/重点:1."串行队列"? "并发队列"? 2.block?{ 1.GCD(Grand Central Dispatch... 阅读全文
posted @ 2015-09-04 22:04 记忆里的那座沙城 阅读(112) 评论(0) 推荐(0) 编辑
摘要: /*------------------------------ NSOperation使用 1.简介 -----------------------------------*/1.NSoperation (操作)简介:NSOperation : //本质是 对GCD的封装 .OC语言NSOpera... 阅读全文
posted @ 2015-09-04 22:01 记忆里的那座沙城 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-09-03 18:25 记忆里的那座沙城 阅读(60) 评论(0) 推荐(0) 编辑
摘要: // CZTool.h一次性代码#import @interface CZTool : NSObject// 用单例设计模式,可以节省内存.// 书写单例// 1. 对外提供一个获取单例对象的接口(API)+(instancetype)sharedCZTool;@end// CZTool.m一次性代... 阅读全文
posted @ 2015-09-03 17:56 记忆里的那座沙城 阅读(672) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIImageView *imageView;@property (weak, nonatomic) IBOutlet... 阅读全文
posted @ 2015-09-03 17:53 记忆里的那座沙城 阅读(174) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // Do any additio... 阅读全文
posted @ 2015-09-03 12:30 记忆里的那座沙城 阅读(96) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // 运行循环本质上就是一个死循... 阅读全文
posted @ 2015-09-02 23:55 记忆里的那座沙城 阅读(142) 评论(0) 推荐(0) 编辑
摘要: //异步函数+全局并发队列 嵌套 异步函数+主队列#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIButton *button;@end@implementati... 阅读全文
posted @ 2015-09-02 22:44 记忆里的那座沙城 阅读(160) 评论(0) 推荐(0) 编辑