摘要: Abstract:NeXT -> OPenStep -> Yellow Box ->CocoaKeywords:1.NeXTNeXT Inc. was a company founded by Steve Jobs, etc. from 1986 until 1997 when NeXT merge... 阅读全文
posted @ 2016-01-01 12:21 MittyoO 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1. method_invokeNote: way to eliminate compiler warnning . ENABLE_STRICT_OBJC_MSGSEND = NO; . int (*action)(id, SEL, int) = (int (*)(id, SEL, in... 阅读全文
posted @ 2015-12-29 23:33 MittyoO 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 1.In the APPTarget,Buildsetting,Set the HEADER SEARCH PATHS,write the Library Source header path.2.In the APP Target,find the "Build Phases",add the l... 阅读全文
posted @ 2015-12-22 01:03 MittyoO 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Links:-----official apple website http://www.opensource.apple.com/tarballs/objc4/ http://www.opensource.apple.com/source/objc4/----- open source p... 阅读全文
posted @ 2015-12-22 00:10 MittyoO 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 1. Read and Comprehend Objective-C runtime2. Master Objective-C API3. Read and Comprehend libdispatch4. Master libdispatch API 阅读全文
posted @ 2015-12-21 23:21 MittyoO 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1. 节省创建开销2. 唯一控制者 阅读全文
posted @ 2015-08-19 01:45 MittyoO 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 一、基本模式1. 具体工厂、抽象产品、具体产品作为其组成要素2. 具体工厂根据传参不同,生成不同的具体产品3. 具体产品细节对使用者透明,只提供抽象产品特征二、模式进化1. 具体工厂有多个生产方法,而不依赖传参2. 静态工厂:工厂不需被实例化,实现类方法作为生产方法 阅读全文
posted @ 2015-08-19 01:40 MittyoO 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 一、基本模式1. 抽象工厂,具体工厂,抽象产品,具体产品作为其要素;2. 具体工厂生产出具有【抽象产品】协议方法的产品3. 生产出的具体产品细节对使用者透明,使用者只需知道抽象产品的协议即可。4. 使用时: AbstractProduct aProduct = concreteFactory.cr... 阅读全文
posted @ 2015-08-19 01:18 MittyoO 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 代码用到了Quartz Framework 和 Core Graphics Framework. 在workspace的framework目录里添加这两个framework图片截取UIGraphicsBeginImageContext(view.bounds.size);[view.layer re... 阅读全文
posted @ 2014-04-22 09:34 MittyoO 阅读(1071) 评论(0) 推荐(0) 编辑
摘要: .h文件#import @interface UILabel(VerticalAlign)-(void)alignTop;-(void)alignBottom;@end.m文件#import "UILabel+VerticalAlign.h"@implementation UILabel(Verti... 阅读全文
posted @ 2014-04-22 09:31 MittyoO 阅读(500) 评论(0) 推荐(0) 编辑