title: Add image to alert view
body: <p>I have an alert view that pops up when the user press the add button. How do i add an image to the alert view? </p>
  
  <p>I added some code that i took reference from stack overflow. My save button is replaced with the image and the image appear to be in blue colour... </p>
  
  <p><strong>Code for Alert View</strong></p>
  
  <pre><code>var alert = UIAlertController(title: "Spring Element \(springNumber)",
              message: "Add spring properties",
              preferredStyle: .Alert)
  
          let saveAction = UIAlertAction(title: "Save",
              style: .Default) { (action: UIAlertAction!) -&gt; Void in
  
                  let textField1 = alert.textFields![0] as UITextField
                  self.txtField1.append(textField1.text)
                  self.tableView.reloadData()
  
                  let textField2 = alert.textFields![1] as UITextField
                  self.txtField2.append(textField2.text)
                  self.tableView.reloadData()
  
                  println(self.txtField1)
                  println(self.txtField2)
          }
  
          let cancelAction = UIAlertAction(title: "Cancel",
              style: .Default) { (action: UIAlertAction!) -&gt; Void in
          }
  
          //adding textfield1
          alert.addTextFieldWithConfigurationHandler {
              (textField1: UITextField!) -&gt; Void in
              textField1.placeholder = "Force"
          }
  
          //adding textfield2
          alert.addTextFieldWithConfigurationHandler {
              (textField2: UITextField!) -&gt; Void in
              textField2.placeholder = "Stiffness"
          }
  
          alert.addAction(saveAction)
          alert.addAction(cancelAction)
  
          presentViewController(alert,
              animated: true,
              completion: nil)
  </code></pre>
  
  <p><strong>Code for Image View</strong></p>
  
  <pre><code>   let image = UIImage(named: "springAtWall")
      saveAction.setValue(image, forKey: "image")
      alert.addAction(saveAction)
  </code></pre>