随笔分类 -  工作笔记

百灵时代
摘要:iOS cocospods + gitlab https://www.jianshu.com/p/d2e571ea868c 阅读全文
posted @ 2019-10-29 17:24 needly 阅读(202) 评论(0) 推荐(0)
摘要:ATProperty ColorSenseRainbow DefaultMarginDisabler IconMaker FKConsole KSImageNamed VVDocumenter XAlign 阅读全文
posted @ 2016-08-12 16:03 needly 阅读(152) 评论(0) 推荐(0)
摘要:-(NSString *)md5{ const char *cStr = [self UTF8String]; unsigned char result[16]; CC_MD5(cStr, strlen(cStr), result); return [NSStringstringWithFormat: @"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x", result[0], result[1], result[2], result[3], result[4], res... 阅读全文
posted @ 2013-12-16 17:15 needly 阅读(369) 评论(0) 推荐(0)
摘要:无论是爱还是恨,你都需要单例。实际上每个iOS或Mac OS应用都至少会有UIApplication或NSApplication.什么是单例呢?Wikipedia是如此定义的:在软件工程中,单例是一种用于实现单例的数学概念,即将类的实例化限制成仅一个对象的设计模式。或者我的理解是:单例是一种类,该类只能实例化一个对象。 尽管这是单例的实际定义,但在Foundation框架中不一定是这样。比如NSFileManger和NSNotificationCenter,分别通过它们的类方法defaultManager和defaultCenter获取。尽管不是严格意义的单例,这些类方法返回一个可以在应用的所 阅读全文
posted @ 2013-12-16 16:52 needly 阅读(170) 评论(0) 推荐(0)