title: Swift addsubview and remove it
body: <p>I want to add sub view and remove with one tap.
  This is my code:</p>
  <p>To add subview:</p>
  <pre><code>var testView: UIView = UIView(frame: CGRectMake(0, 0, 320, 568))
  testView.backgroundColor = UIColor.blueColor()
  testView.alpha = 0.5
  testView.tag = 100
  super.view.userInteractionEnabled = false
  self.view.userInteractionEnabled = true
  self.view.addSubview(testView)
  </code></pre>
  <p>To remove subview:</p>
  <pre><code>override func touchesBegan(touches: NSSet, withEvent event: UIEvent) {
      let touch = touches.anyObject() as UITouch
      let point = touch.locationInView(self.view)
      
      if(testView.tag==100){
          println(&quot;Tag 100&quot;)
          testView.removeFromSuperview()
      }
      else{
          println(&quot;tag not found&quot;)
      }
  }
  </code></pre>
  <p>But the remove it isn't working</p>