<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iOS &#8211; Inga X</title>
	<atom:link href="https://ingax.com/category/ios/feed/" rel="self" type="application/rss+xml" />
	<link>https://ingax.com</link>
	<description>An education platform for people passionate about software engineering to learn problem solving techniques and useful algorithms and data structures</description>
	<lastBuildDate>Mon, 08 Aug 2022 16:44:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.18</generator>
	<item>
		<title>Important iOS Topics</title>
		<link>https://ingax.com/important-ios-topics/</link>
					<comments>https://ingax.com/important-ios-topics/#respond</comments>
		
		<dc:creator><![CDATA[David Inga]]></dc:creator>
		<pubDate>Mon, 08 Aug 2022 16:41:38 +0000</pubDate>
				<category><![CDATA[iOS]]></category>
		<guid isPermaLink="false">https://ingax.com/?p=6989</guid>

					<description><![CDATA[ARC and Retain Cycles ARC or Automatic Reference Counting is system by which objects store a count of strong references that have been created in...]]></description>
										<content:encoded><![CDATA[
<h2>ARC and Retain Cycles</h2>



<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Swift - Retain Cycle, Automatic Reference Counting, Memory Leak - iOS Interview Questions" width="1080" height="608" src="https://www.youtube.com/embed/VcoZJ88d-vM?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div></figure>



<p></p>



<p>ARC or Automatic Reference Counting is system by which objects store a count of strong references that have been created in memory.</p>



<p>Once the number of references reaches 0, the object can be deinitialized.&nbsp;</p>



<p>A strong reference cycle or reference retain cycle is when two objects store strong references to each other. In this case, neither object can be removed from memory because the reference count will never reach 0.</p>



<p>Imagine a case where this type of object relationship was being created in a loop. The memory used by the app would grow indefinitely. This would be the cause of a memory leak.</p>



<p>It is important to be careful when creating object models that reference other objects. Closures can be particularly tricky because they store references to objects in a way that isn’t obvious to the developer.</p>



<p>A way to have an object relationship where two objects reference each other would be to make one of the references weak or unowned.&nbsp;</p>



<p>This can be accomplished by marking a property @unowned or @weak in a class, struct, or enum.</p>



<p>In a closure, a capture list is used to mark references as strong, weak, or unowned.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ingax.com/important-ios-topics/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 15/26 objects using disk
Page Caching using disk: enhanced 
Database Caching using disk

Served from: ingax.com @ 2026-06-06 12:20:37 by W3 Total Cache
-->