title: Updating the value in a dictionary at the proper index
body: <p>I have a dictionary which has a key <code>product_quantity</code>. Now <code>product_quantity</code> has a value of '1'. But later on <code>product_quantity</code> gets a different value from a picker view and at that time I want the value of <code>product_quantity</code> in the dictionary to be updated. In other words I want to update the values in dictionary. But how that can be achieved that I'm not able to figure out.</p>
  
  <p>Something like this is so far done..Here the <code>index</code> that I have given is just initialized as <code>var index = Int()</code> and it always has a value of 0. So it doesn't work.</p>
  
  <p>Hope somebody can help...</p>
  
  <pre><code>self.appDelegate.myDictionary["product_quantity"] = cell.qtyPickerField.text!
  
  self.appDelegate.arrayOfDictionary[index] = self.appDelegate.myDictionary
  </code></pre>