随笔分类 -  内存管理

摘要:http://blog.sina.com.cn/s/blog_6fd68d5f0100n60h.html 前言--构造函数、析构函数的简单理解:1)构造函数 对象被创建时候调用的函数;2)析构函数 对象被释放时候调用的函数;一 案例程序源代码//下面的代码为一个简单的VC++6.0下生成的控制台工程 阅读全文
posted @ 2017-09-05 19:10 zzfx 阅读(382) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/flyFreeZn/p/4264220.html 本文来源于我个人的ARC学习笔记,旨在通过简明扼要的方式总结出iOS开发中ARC(Automatic Reference Counting,自动引用计数)内存管理技术的要点,所以不会涉及全部细节。这篇文章 阅读全文
posted @ 2017-09-05 11:55 zzfx 阅读(228) 评论(0) 推荐(0) 编辑
摘要:http://www.cocoachina.com/ios/20170216/18689.html iOS 内存机制特点 有限的可用内存 有限的可用内存 iPhone 设备的 RAM 一直非常紧缺,iPhone 一代只有 128MB,直到 iPhone5 时达到了 1GB,并且在 iPhone7 p 阅读全文
posted @ 2017-08-04 19:17 zzfx 阅读(309) 评论(0) 推荐(0) 编辑
摘要:You will want to use the [UIImage imageWithContentsOfFile:@""] method, as that doesn't cache images. imageNamed: caches any images that are loaded thr 阅读全文
posted @ 2017-08-04 19:15 zzfx 阅读(329) 评论(0) 推荐(0) 编辑
摘要:https://stablekernel.com/view-controller-in-ios-6/ Some of you may have noticed that your view controller in iOS 6 no longer gets sent to viewWillUnlo 阅读全文
posted @ 2017-08-04 17:35 zzfx 阅读(293) 评论(0) 推荐(0) 编辑
摘要:https://developer.apple.com/library/content/documentation/Performance/Conceptual/ManagingMemory/Articles/MallocDebug.html#//apple_ref/doc/uid/20001884 阅读全文
posted @ 2017-08-01 18:43 zzfx 阅读(318) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/yhyr_ycy/article/details/52566105 GC,即就是Java垃圾回收机制。目前主流的JVM(HotSpot)采用的是分代收集算法。与C++不同的是,Java采用的是类似于树形结构的可达性分析法来判断对象是否还存在引用。即:从gcr 阅读全文
posted @ 2017-08-01 15:45 zzfx 阅读(589) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/buutterfly/article/details/6617375 内存溢出 out of memory,是指程序在申请内存时,没有足够的内存空间供其使用,出现out of memory;比如申请了一个integer,但给它存了long才能存下的数,那就是 阅读全文
posted @ 2017-07-28 18:49 zzfx 阅读(116) 评论(0) 推荐(0) 编辑
摘要:https://en.wikipedia.org/wiki/Memory_management Memory management is a form of resource management applied to computer memory. The essential requireme 阅读全文
posted @ 2017-07-28 11:41 zzfx 阅读(804) 评论(0) 推荐(0) 编辑
摘要:https://github.com/Draveness/Analyze/blob/master/contents/objc/黑箱中的%20retain%20和%20release.md 写在前面 在接口设计时,我们经常要考虑某些意义上的平衡。在内存管理中也是这样,Objective-C 同时为我们 阅读全文
posted @ 2017-07-26 15:46 zzfx 阅读(345) 评论(0) 推荐(0) 编辑
摘要:手动管理的栈帧 http://draveness.me/autoreleasepool.html 关注仓库,及时获得更新:iOS-Source-Code-Analyze Follow: Draveness · Github 由于 Objective-C 中的内存管理是一个比较大的话题,所以会分为两篇 阅读全文
posted @ 2017-07-26 13:11 zzfx 阅读(275) 评论(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) 编辑