摘要:
Before xcode 4.3 we can use this to encode and decode NSCachedURLResponse:@implementation NSCachedURLResponse (NSCoder)- (void)encodeWithCoder:(NSCode... 阅读全文
摘要:
The Objective-C language level synchronization uses the mutex, just likeNSLockdoes. Semantically there are some small technical differences, but it is... 阅读全文
摘要:
Unit Test 工具1、OCUnit:从 xcode 2.1 开始集成到开发环境中,使用方便,不需要引入额外的库。并可以配置 xcodebuild,实现在命令行测试,从而在 CI 中进行测试与报告。2、GTM 的单元测试部分:对 OCUnit 进行了扩展,增加了一些宏。地址:https://co... 阅读全文
摘要:
1、Belady's algorithms2、random replacement3、first in first out4、least frequent used (LFU)5、simple time-based6、least recently used (LRU)7、adaptive repla... 阅读全文