title: Swift-4: How to assign NSArray of NSDictionary values to another NSDictionary variable and how do i get value for key from NSDictionary
body: <p>In objective C we assign NSArray of dictionary values to NSDictionary variable and to get value for key as follows,<code>NSDictionary *dictValue = [array objectAtIndex:indexPath.row]</code>and <code>cell.name.text = [dictValue valueForKey:"customer_name"]</code> so how to do the above coding in swift-4. The way i declared NSArray variable,assined array of dictionary values to another NSDictionary and way of getting value from the NSDictionary.</p>
  
  <pre><code>var leadsArray = [NSArray]() /* Declared NSArray Variable */
  let dictValue = larray[indexPath.row] as NSDictionary! /* Assigning each array of dictionary by row count */
  cell.label1.text = dictValue["customer_name"] /* Getting valuefor key from NSDictionary Varibale */
  </code></pre>