title: Swift iOS : Delete UITextField with button
body: <p>I'm creating a textfields in viewDidLoad and i have a add new textfield button. I'm adding new textfields, but not deleting. I just don't do it because i am new. Here is my addNewTextField button func :</p>
  
  <pre><code> @IBAction func addNewTextField(sender: AnyObject) {
          var myTextField: UITextField = UITextField(frame: CGRect(x: 0, y:0, width: 200.00,height: 240.00));
          myTextField.placeholder = "write something"
          myTextField.center = CGPointMake(160, CGFloat(height2))
  
          height2 = height2 + 50;
  
          self.arrayOfTextFields.append(myTextField)
          self.view.addSubview(myTextField)
  
      }
  </code></pre>
  
  <p>How can i delete this textfields and arrays with another button ?</p>