IOS第三方类
lgqyhm2010
这个作者很懒,什么都没留下…
展开
-
HMJSONKit
由于第三方的JSONKit 有内容泄漏,故自己重新写JSON解析,用系统自带的NSJSONSerialization写(适用IOS5以上)更加高效和方便 ,形式参考JSONKit,这样就不用去改动工程的代码。直接上代码//// HMJSONKit.h// CaiYun//// Created by lgqyhm on 14-1-3.////#import @inter原创 2014-01-13 09:52:04 · 891 阅读 · 1 评论 -
由UIColor 生成 UIImage
+ (UIImage *)createImageWithColor:(UIColor *)color{ CGRect rect=CGRectMake(0.0f, 0.0f, 1.0f, 1.0f); UIGraphicsBeginImageContext(rect.size); CGContextRef context = UIGraphicsGetCurrent原创 2014-01-16 13:59:09 · 667 阅读 · 0 评论 -
ELFhashValue
- (int)ELFhashValue:(NSString *)key { if (!key) return -1; unsigned long h = 0; unsigned long g; unsigned long word; for (int i = 0; i word = [k原创 2014-01-20 10:22:45 · 477 阅读 · 0 评论