title: add multiple objects to swift array in for loop
body: <pre><code>for tempExportData in exportDataArray {
      let tmpRegNO:NSString = (tempExportData as AnyObject).object(forKey: kRegisteredNo) as! NSString
      print("tmpRegNO is",tmpRegNO)
      var tmpNoArray:Array = [String]()
      tmpNoArray.append(tmpRegNO as String)
      print("Count is",tmpNoArray.count)
      print("ARRAY is",tmpNoArray)
  }
  </code></pre>
  
  <p>I am trying to add string value i.e <code>tmpRegNO</code> to the Array <code>tmpNoArray</code>.<br>
  In this I can able to add only one value to the array at a time.<br>
  How to add the next value  to that array when it is looping for second time.</p>