上一页 1 ··· 87 88 89 90 91 92 93 94 95 ··· 102 下一页
摘要: https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html About Objective-C 阅读全文
posted @ 2017-07-24 23:40 zzfx 阅读(146) 评论(0) 推荐(0)
摘要: Objective-C语言是一门动态语言,它将很多静态语言在编译和链接时期做的事放到了运行时来处理。这种动态语言的优势在于:我们写代码时更具灵活性,如我们可以把消息转发给我们想要的对象,或者随意交换一个方法的实现等。 这种特性意味着Objective-C不仅需要一个编译器,还需要一个运行时系统来执行 阅读全文
posted @ 2017-07-24 19:31 zzfx 阅读(185) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/tskyfree/article/details/7984887 一、Objective-C多态 1.概念:相同接口,不同的实现 来自不同类可以定义共享相同名称的方法。 动态类型能使程序直到执行时才确定对象所属类型 动态类型绑定能使程序直到执行时才确定要对对 阅读全文
posted @ 2017-07-24 19:27 zzfx 阅读(264) 评论(0) 推荐(0)
摘要: https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/DefiningClasses/DefiningClasses.html#//apple_ref/ 阅读全文
posted @ 2017-07-24 19:19 zzfx 阅读(144) 评论(0) 推荐(0)
摘要: @interface JWCacheURLProtocol : NSURLProtocol<NSURLSessionDataDelegate> - (void)startLoading{ NSCachedURLResponse *urlResponse = [[NSURLCache sharedUR 阅读全文
posted @ 2017-07-19 16:48 zzfx 阅读(433) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/eroswang/article/details/8302191 最近在对CDN进行优化,对浏览器缓存深入研究了一下,记录一下,方便后来者 画了一个草图: 每个状态的详细说明如下: 1、Last-Modified 在浏览器第一次请求某一个URL时,服务器端的 阅读全文
posted @ 2017-07-19 15:32 zzfx 阅读(213) 评论(0) 推荐(0)
摘要: uiwebview 离线缓存图片 阅读全文
posted @ 2017-07-18 23:49 zzfx 阅读(225) 评论(0) 推荐(0)
摘要: https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/URLLoadingSystem/URLLoadingSystem.html#//apple_ref/doc/uid/10000165-BCICJDH 阅读全文
posted @ 2017-07-18 23:15 zzfx 阅读(226) 评论(0) 推荐(0)
摘要: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5 POST The POST method is used to request that the origin server accept the entity enclosed 阅读全文
posted @ 2017-07-18 22:14 zzfx 阅读(391) 评论(0) 推荐(0)
摘要: https://www.mnot.net/blog/2012/09/24/caching_POST One of the changes in Apple’s release of iOS6 last week was a surprising new ability to cache POST r 阅读全文
posted @ 2017-07-18 22:07 zzfx 阅读(214) 评论(0) 推荐(0)
摘要: 网络通信中的要素全部用面相对象来描述。 请求:数据地址+操作说明; 响应:响应头+响应体。 阅读全文
posted @ 2017-07-18 15:45 zzfx 阅读(228) 评论(0) 推荐(0)
摘要: https://en.wikipedia.org/wiki/First-class_function In computer science, a programming language is said to have first-class functions if it treats func 阅读全文
posted @ 2017-07-16 14:33 zzfx 阅读(379) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/hikaliv/article/details/4588163 一等公民,First-Class Citizen,此处 Citizen 可换为 object / value / entity 等词。所谓“一等公民”即指在程序中可无限使用的对像(相比其它对像) 阅读全文
posted @ 2017-07-16 14:27 zzfx 阅读(1265) 评论(0) 推荐(0)
摘要: https://developer.apple.com/swift/blog/?id=39 Increasing Performance by Reducing Dynamic Dispatch Like many other languages, Swift allows a class to o 阅读全文
posted @ 2017-07-15 23:31 zzfx 阅读(182) 评论(0) 推荐(0)
摘要: 浮躁:不自知+无措 个人觉得浮躁的有几个原因: 1.目标过大,实现可能性自己都不相信。划分细小的目标不仅实现起来容易,而且能够带来成就感。 2.同时进行多个目标,精力分散,失去焦点。浮躁的人经常是我今天要这个,明天要搞那个,他要学的东西太多,太大,一碰到困难,就想先绕开,换另外一个方向。建议一段时间 阅读全文
posted @ 2017-07-10 19:24 zzfx 阅读(824) 评论(0) 推荐(0)
摘要: 专注、自律、合作、向上 阅读全文
posted @ 2017-07-10 18:19 zzfx 阅读(193) 评论(0) 推荐(0)
摘要: http://www.jianshu.com/p/b7169a5a558e OS 分类底层是怎么实现的?本文将分如下四个模块进行探究 本文使用的runtime源码版本是 objc4 - 680文中类与分类代码如下 1.分类的结构体 2.编译时的分类 2.1分类的属性 对比上述代码可以发现:在分类中可 阅读全文
posted @ 2017-07-07 19:13 zzfx 阅读(928) 评论(0) 推荐(0)
摘要: https://tech.meituan.com/DiveIntoCategory.html 摘要 无论一个类设计的多么完美,在未来的需求演进中,都有可能会碰到一些无法预测的情况。那怎么扩展已有的类呢?一般而言,继承和组合是不错的选择。但是在Objective-C 2.0中,又提供了category 阅读全文
posted @ 2017-07-07 19:11 zzfx 阅读(575) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/yashi88/p/3551947.html 最近在做一个项目的时候,需要使用到一个第三方库,这个库的使用向导里面特别说明,在添加完该库后,需要在Xcode的Build Settings下Other Linker Flags里面加入-ObjC标志,这个标 阅读全文
posted @ 2017-07-07 18:39 zzfx 阅读(238) 评论(0) 推荐(0)
摘要: 为什么使用连接器 阅读全文
posted @ 2017-07-07 17:14 zzfx 阅读(175) 评论(0) 推荐(0)
上一页 1 ··· 87 88 89 90 91 92 93 94 95 ··· 102 下一页