摘要: 零、线程的注意点(掌握)1.不要同时开太多的线程(1~3条线程即可,不要超过5条)2.线程概念1> 主线程 : UI线程,显示、刷新UI界面,处理UI控件的事件2> 子线程 : 后台线程,异步线程3.不要把耗时的操作放在主线程,要放在子线程中执行一、NSThread(掌握)1.创建和启动线程的3种方... 阅读全文
posted @ 2015-10-03 15:32 微博和csdn还有你 阅读(180) 评论(0) 推荐(0) 编辑
摘要: // .h文件#define HMSingletonH + (instancetype)sharedInstance;// .m文件#define HMSingletonM \static id _instance; \ \+ (id)allocWithZone:(struct _NSZone *)... 阅读全文
posted @ 2015-10-03 14:48 微博和csdn还有你 阅读(204) 评论(0) 推荐(0) 编辑
摘要: //// HMMusicTool.h// 03-单例模式-Singleton(掌握)//// Created by apple on 14-9-16.// Copyright (c) 2014年 heima. All rights reserved.// 播放音乐#import @inte... 阅读全文
posted @ 2015-10-03 14:30 微博和csdn还有你 阅读(438) 评论(0) 推荐(0) 编辑