摘要: #import "UIImage+image.h" #import @implementation UIImage (image) +(void)load //只要分类被装载到内存中 就会被调用一次 { Method ohter=class_getClassMethod([UIImage class], @selector(imageWithName:)); Method ... 阅读全文
posted @ 2016-08-17 21:02 谢小锋 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 保持程序的持续运行 处理App中的各种事件(比如触摸,定时器 select事件) 节省CPU资源,最高程序性能,该做事情做事,该休息休息 默认启动的RunLoop是跟主线程相关联 iOS 中有两套访问和使用RunLoop Foundation:NSRunLoop Core Foundation:CF 阅读全文
posted @ 2016-08-17 19:35 谢小锋 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 是一套底层的C语言API 实际平实我们编写的OC代码底层,底层都是基于runtime实现的 阅读全文
posted @ 2016-08-17 17:18 谢小锋 阅读(150) 评论(0) 推荐(0) 编辑
摘要: ARC _bridge retained bridge transfron 可以互相转化 非ARC _bridge 阅读全文
posted @ 2016-08-17 17:06 谢小锋 阅读(144) 评论(0) 推荐(0) 编辑