title: Strong and Weak Confusion in iOS
body: <p>I am little confused about using <code>Strong</code> or <code>Weak</code> in my particular case.</p>
  
  <p>I have one class <code>ParentClass</code> which has <code>3 object</code> <code>ContainerClass1</code>, <code>ContainerClass2</code> and <code>ContainerClass3</code>.</p>
  
  <p>Each <code>ContainerClass</code> has its own strong properties with Mutable objects like <code>NSMutableArray</code></p>
  
  <p>Now in my case, I have to show only one <code>ContainerClass</code> at a time, so if <code>ContainerClass1</code> is shown then <code>ContainerClass2</code> and <code>ContainerClass3</code> is not required.</p>
  
  <p>So I thought when I show <code>ContainerClass1</code>, will set <code>ContainerClass2</code> and <code>ContainerClass3</code> objects to <code>nil</code>. Here I am confused whether just setting the other <code>ContainerClass</code>(not shown) to <code>nil</code> will <code>release</code> its memory? because they have strong properties to other objects.</p>
  
  <p>Or should I need to set all other <code>ContainerClass's</code> strong properties to <code>nil</code> first and then set <code>ContainerClass</code> to <code>nil</code>?</p>
  
  <p>Thanks in advance.</p>