摘要:
下载小文件的方式 // 1.NSData dataWithContentsOfURLdispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ // 其实这就是一个GET请求 NSUR... 阅读全文
posted @ 2015-11-20 20:33
Z了个L
阅读(187)
评论(0)
推荐(0)
摘要:
HMSingleton.h(这个可以直接copy过去,拿到项目中去用)文件名文件内容:// .h文件#define HMSingletonH(name) + (instancetype)shared##name;// .m文件#if __has_feature(objc_arc) #defin... 阅读全文
posted @ 2015-11-20 19:30
Z了个L
阅读(160)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2015-11-20 19:28
Z了个L
阅读(127)
评论(0)
推荐(0)
摘要:
HMDataTool.h#import @interface HMDataTool : NSObject+ (instancetype)sharedDataTool;@endHMDataTool.m#import "HMDataTool.h"@implementation HMDataTool// ... 阅读全文
posted @ 2015-11-20 15:36
Z了个L
阅读(111)
评论(0)
推荐(0)
摘要:
HMDataTool.h#import @interface HMDataTool : NSObject+ (instancetype)sharedDataTool;@endHMDataTool.m#import "HMDataTool.h"@implementation HMDataTool// ... 阅读全文
posted @ 2015-11-20 15:02
Z了个L
阅读(128)
评论(0)
推荐(0)
摘要:
static 修饰变量:1>修饰全局变量:*全局变量的作用域仅限于当前文件内部2>修饰局部变量:*局部变量的生命周期 跟 全局变量类似*但是不能改变作用域*但能保证局部变量永远只初始化1次,在程序运行过程中,永远只有1份内存 阅读全文
posted @ 2015-11-20 14:46
Z了个L
阅读(119)
评论(0)
推荐(0)
摘要:
HMMusicTool.h#import @interface HMMusicTool : NSObject+ (instancetype)sharedMusicTool;@endHMMusicTool.m#import "HMMusicTool.h"@implementation HMMusicT... 阅读全文
posted @ 2015-11-20 12:40
Z了个L
阅读(172)
评论(0)
推荐(0)

浙公网安备 33010602011771号