title: Remove null objects from mutable array in objective c
body: <p>I have a mutable array of checked box</p>
  
  <pre><code>NSMutableArray *arrayOfCheckedBox = [NSMutableArray arrayWithObjects:namePropertyString, lastNamePropertyString, companyPropertyString, workEmailPropertyString, personalEmailPropertyString, workPhonePropertyString, cellNumberPropertyString, nil];
      [arrayOfCheckedBox removeObjectIdenticalTo:[NSNull null]]; //not working
      NSLog(@"array of check box = %@", arrayOfCheckedBox);
  </code></pre>
  
  <p>If I click on check boxes at index 0, 1 and 4, it will only collect object at indexes 0 and 1 only and will not detect index 4 at all. </p>
  
  <p>I get the values at the selected index in log before getting it in arrayOfCheckedBox. How to get checked values in this case?</p>