Objective-C
五虎将
这个作者很懒,什么都没留下…
展开
-
打印UIView的方法
NSString *cClassName = NSStringFromClass([UIView class]); const char* theClass = object_getClassName(cClassName); NSLog(@"theclassname is:%s",theClass); unsigned int outCount;转载 2017-05-11 10:23:10 · 347 阅读 · 0 评论 -
What is a meta-class in Objective-C?
http://www.cocoawithlove.com/2010/01/what-is-meta-class-in-objective-c.html Please note: this article is part of the older "Objective-C era" on Cocoa with Love. I don't keep these articles up转载 2017-05-12 14:55:16 · 239 阅读 · 0 评论 -
Runtime的文档
https://developer.apple.com/reference/objectivec/objective_c_runtime https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Introduction/Introduction.html http转载 2017-05-12 14:58:12 · 316 阅读 · 0 评论 -
如何根据RGB值生成UIImage,暂时用不到这些,记录一下。
http://www.cocoachina.com/bbs/read.php?tid-60270.html http://stackoverflow.com/questions/845278/overlaying-a-uiimage-with-a-color 如何根据RGB值生成UIImage,暂时用不到这些,记录一下。 1 先定义UIColor *color = [[UICol转载 2017-06-01 14:19:32 · 314 阅读 · 0 评论 -
一款轻量级的 iOS 图像缓存 (来源oschina)
https://www.oschina.net/translate/a-lightweight-ios-image-cache?lang=chs&page=2# 英文原文: A Lightweight iOS Image Cache http://chairnerd.seatgeek.com/a-lightweight-ios-image-cache/ A Lightweight i转载 2017-08-30 17:14:16 · 399 阅读 · 0 评论 -
关于C++ 将lambda表达式作为参数传递
https://blog.csdn.net/register_man/article/details/71330743 项目里面用到lambda,需要穿参数,看了这篇博文,便动手试了试。 先定义一个typedef void (^responsefunc)(Poco::Net::HTTPResponse::HTTPStatus result, const string& response...原创 2018-09-07 10:53:28 · 3668 阅读 · 0 评论