<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>arc on adolsai's echo</title><link>https://adolsai.com/tag/arc/</link><description>Recent content in arc on adolsai's echo</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Fri, 14 Aug 2015 17:34:18 +0800</lastBuildDate><atom:link href="https://adolsai.com/tag/arc/index.xml" rel="self" type="application/rss+xml"/><item><title>Transitioning to ARC Release Notes</title><link>https://adolsai.com/archives/Transitioning-to-ARC-Release-Notes.html</link><pubDate>Wed, 12 Aug 2015 21:40:00 +0800</pubDate><guid>https://adolsai.com/archives/Transitioning-to-ARC-Release-Notes.html</guid><description>&lt;p&gt;ARC (Automatic Reference Counting)是llvm compiler的特性之一，提供了objective-c对象的自动内存管理功能。它自动在适当的地方插入&lt;code&gt;retian&lt;/code&gt;、&lt;code&gt;release&lt;/code&gt;、&lt;code&gt;autorelease&lt;/code&gt;方法，配合autoreleasepool使用。启用了ARC之后，将不再能手动使用&lt;code&gt;retian&lt;/code&gt;、&lt;code&gt;release&lt;/code&gt;、&lt;code&gt;autorelease&lt;/code&gt;方法了。&lt;/p&gt;</description></item><item><title>Advanced Memory Management Programming Guide</title><link>https://adolsai.com/archives/Advanced-Memory-Management-Programming-Guide.html</link><pubDate>Mon, 03 Aug 2015 16:18:00 +0800</pubDate><guid>https://adolsai.com/archives/Advanced-Memory-Management-Programming-Guide.html</guid><description>&lt;h2 id="关于ios内存管理"&gt;关于iOS内存管理&lt;/h2&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;该文章包含了一些ARC出现之前的内存管理方法，看完之后去看 《 &lt;em&gt;Transitioning to ARC Release Notes&lt;/em&gt; 》可以更加完整地把知识结合起来。&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;内存管理可以理解为把内存这种有限的资源分配给一个application里面所有代码和数据的动作。&lt;/p&gt;&#10;&lt;p&gt;使用Objective-C的时候，内存管理实际上就是对app内使用的Object的关系的管理。因为iOS的内存管理是基于&lt;em&gt;reference counting&lt;/em&gt;的。&lt;/p&gt;&#10;&lt;p&gt;目标是app占用的内存中不包含任何不需要的object。&lt;/p&gt;</description></item></channel></rss>