title: UIImage to String and String to UIImage in Swift
body: <p>I add name of the user and photo user to <code>UserDefaults</code> array then send this array to my site + insert this array in another <code>ViewController</code></p>
  
  <p>Code to save:</p>
  
  <pre><code> let imageSaveData = UIImageJPEGRepresentation(self.profileUserPhotoImage.image!, 1.0) as NSData?    
   let base64String = imageSaveData?.base64EncodedString()
      let userNameAdnPhoto = ["name": self.userNameLabel.text, "image": base64String] as? [String: String]
      var userArrayToUDef = UserDefaults.standard.array(forKey: "userInfo") as? [[String: String]]
  </code></pre>
  
  <p>In another <code>ViewController</code> I don't know how to get from <code>UserDefaults.standard.array(forKey: "userInfo")</code> image to <code>UIImageView</code> in <code>ViewController</code></p>