title: How to hide a bunch of labels in an IBOutletCollection?
body: <p>New to Objective-C and iOS development, would love a hand here!</p>
  
  <p>I have written up some code such that</p>
  
  <pre><code>IBOutletCollection(UILabel) NSArray *allLabels;
  </code></pre>
  
  <p>In IB I have linked up all my labels in my view to this collection, where I want to hide them for a certain condition. However, I am not sure how to do so. Obviously to hide a single label I'd use</p>
  
  <pre><code>labelX.hidden = YES;
  </code></pre>
  
  <p>however it is not ideal for me to do this without a collection, as I have many labels to hide.</p>
  
  <p>Thanks for your tips in advance!</p>