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