随笔分类 -  oc

摘要:函数签名-调用约定-函数调用栈: 函数名、参量、返回值等信息的汇总; 密切相关 阅读全文
posted @ 2018-01-30 12:14 zzfx 阅读(189) 评论(0) 推荐(0) 编辑
摘要:Grand Central Dispatch (GCD) is a technology developed by Apple Inc. to optimize application support for systems with multi-core processors and other  阅读全文
posted @ 2018-01-18 23:51 zzfx 阅读(199) 评论(0) 推荐(0) 编辑
摘要:1)取消点的位置;耗时操作、大的业务逻辑; 2)取消后的资源释放。 pthread_cleanup_push 执行取消操作存在一定的危险。大多数危险都与完全恢复不变量和释放共享资源有关。取消线程时一定要格外小心,否则可能会使互斥保留为锁定状态,从而导致死锁状态。或者,已取消的线程可能保留已分配的内存 阅读全文
posted @ 2017-12-11 19:36 zzfx 阅读(394) 评论(0) 推荐(0) 编辑
摘要:Concurrency and Application Design In the early days of computing, the maximum amount of work per unit of time that a computer could perform was deter 阅读全文
posted @ 2017-12-11 19:21 zzfx 阅读(136) 评论(0) 推荐(0) 编辑
摘要:One of the technologies for starting tasks asynchronously is Grand Central Dispatch (GCD). This technology takes the thread management code you would 阅读全文
posted @ 2017-12-11 19:19 zzfx 阅读(170) 评论(0) 推荐(0) 编辑
摘要:Replacing Threads with Dispatch Queues To understand how you might replace threads with dispatch queues, first consider some of the ways you might be 阅读全文
posted @ 2017-12-11 19:14 zzfx 阅读(181) 评论(0) 推荐(0) 编辑
摘要:When you create a static library you don't link in the dependent libraries. As a result, when you rename one of the files from .m to .mm it starts to 阅读全文
posted @ 2017-12-07 15:13 zzfx 阅读(390) 评论(0) 推荐(0) 编辑
摘要:“闭包” 一词来源于以下两者的结合:要执行的代码块(由于自由变量被包含在代码块中,这些自由变量以及它们引用的对象没有被释放)和为自由变量提供绑定的计算环境(作用域)。 http://blog.csdn.net/yxwlzsh/article/details/46882119 第一部分: 理论 什么是 阅读全文
posted @ 2017-09-06 16:10 zzfx 阅读(1194) 评论(0) 推荐(0) 编辑
摘要:https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/Blocks/Articles/bxOverview.html#//apple_ref/doc/uid/TP40007502-CH3-SW1 Conc 阅读全文
posted @ 2017-09-06 15:01 zzfx 阅读(202) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/flyFreeZn/p/4264220.html 本文来源于我个人的ARC学习笔记,旨在通过简明扼要的方式总结出iOS开发中ARC(Automatic Reference Counting,自动引用计数)内存管理技术的要点,所以不会涉及全部细节。这篇文章 阅读全文
posted @ 2017-09-05 11:55 zzfx 阅读(238) 评论(0) 推荐(0) 编辑
摘要:https://developer.apple.com/library/content/documentation/General/Conceptual/DevPedia-CocoaCore/ObjectComparison.html#//apple_ref/doc/uid/TP40008195-C 阅读全文
posted @ 2017-08-09 23:38 zzfx 阅读(291) 评论(0) 推荐(0) 编辑
摘要:https://developer.apple.com/library/content/documentation/General/Conceptual/DevPedia-CocoaCore/DynamicTyping.html#//apple_ref/doc/uid/TP40008195-CH62 阅读全文
posted @ 2017-08-09 23:05 zzfx 阅读(277) 评论(0) 推荐(0) 编辑
摘要:https://github.com/Draveness/Analyze/blob/master/contents/objc/黑箱中的%20retain%20和%20release.md 写在前面 在接口设计时,我们经常要考虑某些意义上的平衡。在内存管理中也是这样,Objective-C 同时为我们 阅读全文
posted @ 2017-07-26 15:46 zzfx 阅读(346) 评论(0) 推荐(0) 编辑
摘要:手动管理的栈帧 http://draveness.me/autoreleasepool.html 关注仓库,及时获得更新:iOS-Source-Code-Analyze Follow: Draveness · Github 由于 Objective-C 中的内存管理是一个比较大的话题,所以会分为两篇 阅读全文
posted @ 2017-07-26 13:11 zzfx 阅读(276) 评论(0) 推荐(0) 编辑
摘要:Every program must deal with errors as they occur at runtime. The program, for example, might not be able to open a file, or perhaps it cannot parse a 阅读全文
posted @ 2017-07-25 23:59 zzfx 阅读(147) 评论(0) 推荐(0) 编辑
摘要:https://developer.apple.com/documentation/foundation/nsautoreleasepool An object that supports Cocoa’s reference-counted memory management system. An 阅读全文
posted @ 2017-07-25 23:54 zzfx 阅读(267) 评论(0) 推荐(0) 编辑
摘要:http://www.cocoachina.com/ios/20151103/14007.html 本文翻译自 Ryan Kaplan 的 More than you want to know about @synchronized 因为原文一些内容写的不太准确,我按照我的理解做出了批注和补充。 如 阅读全文
posted @ 2017-07-25 12:10 zzfx 阅读(853) 评论(0) 推荐(0) 编辑
摘要:http://www.cocoawithlove.com/2010/01/what-is-meta-class-in-objective-c.html In this post, I look at one of the stranger concepts in Objective-C — the 阅读全文
posted @ 2017-07-25 11:26 zzfx 阅读(170) 评论(0) 推荐(0) 编辑
摘要:http://www.sealiesoftware.com/blog/archive/2009/04/14/objc_explain_Classes_and_metaclasses.html Objective-C is a class-based object system. Each objec 阅读全文
posted @ 2017-07-25 11:04 zzfx 阅读(196) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/biosli/p/NSObject_inherit_2.html 函数调用 Objective-C是一门动态语言,一个函数是由一个selector(SEL),和一个implement(IML)组成的。Selector相当于门牌号,而Implement才是 阅读全文
posted @ 2017-07-25 10:41 zzfx 阅读(269) 评论(0) 推荐(0) 编辑