title: How to dismiss keyboard when touch outside the textfield?
body: <p>I have this structure:</p>
  
  <pre><code> ViewController
       |
    MainView  &lt;-- Give a Tap value =1
       |
    ScrollView
       |
      View &lt;-- give a Tag value =2
        |
       another View use to contain textFields  &lt;-- give a tap value =3
  </code></pre>
  
  <p>The View has same width as Scrollview and MainView.</p>
  
  <p>The "Another View" width is not same as View. In the "another view", I have a few textfields in it.</p>
  
  <p>Problem : Touching on View or outside the textfield, the keyboard will not dismiss.</p>
  
  <p>I have implement this for keyboard, but it did not work.</p>
  
  <pre><code> override func toucheBegan(touches: Set&lt;UITouch&gt;, withEvent event:UiEvent?){
  
        if (view.tag == 1) {
  
              //- this refer to main view
              view.endEditing(true)
  
        } else {
  
           //- this refer to the other view.
        view.endEditing(true)
  
        }
  
  --Upate:&lt;br/&gt;
  
    override func toucheBegan(touches: Set&lt;UITouch&gt;, withEvent event:UiEvent?){
  
        self.view.endEditing(true)  // with or without self
  
  }
  </code></pre>