title: Call protocol method twice, Swift
body: <p>I have subclass file which use method from UITextFieldDelegate protocol</p>
  
  <pre><code>class MyTextField: UITextField, UITextFieldDelegate {
       . . .
       override func willMoveToSuperview(newSuperview: UIView?) {
           super.willMoveToSuperview(newSuperview)
  
           self.delegate = self       
       }
  
       func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -&gt; Bool {
  
           // some actions
  
           return true
       }
  }
  </code></pre>
  
  <p>In my ViewController class I use input field with my subclass</p>
  
  <pre><code>class ViewController: UIViewController, UITextFieldDelegate {
  
      @IBOutlet weak var field: MyTextFieldMask!
  
      override func viewDidLoad() {
           super.viewDidLoad()
           // Do any additional setup after loading the view, typically from a nib.
  
            self.field.delegate = self
  
       }
       func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -&gt; Bool {
  
           // some other actions
  
           return true
       }
  }
  </code></pre>
  
  <hr>
  
  <p>If somebody add UITextFieldDelegate protocol method to ViewController class (like on code above) my first method in MyTextField subclass will be overwritten.</p>
  
  <p>How I can use same method twice with different actions inside?</p>