title: Swift: tap Gesture not recognized
body: <p>I am having some trouble getting my tap gesture to work when my code is separated into classes. I had this all contained in one file earlier and it worked smoothly so I assume I did something wrong in the following code:</p>
  
  <pre><code>placeContainerView.userInteractionEnabled = true
  
  let showFullPlaceContainerView = UITapGestureRecognizer(target: self, action: Selector(self.showFullPlaceContainerViewFunction(placeContainerView)))
  placeContainerView.addGestureRecognizer(showFullPlaceContainerView)
  </code></pre>
  
  <p>where the function <code>showFullContainerViewFunction(placeContainerView)</code> </p>
  
  <pre><code>func showFullPlaceContainerViewFunction(placeContainerView: PlaceContainerView) {
      placeContainerView.animateExpandContractContainer()   
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>func animateExpandContractContainer() {
      print("Tap gesture working")
      if self.displayingPlaceLabel == false {
          print(self.displayingPlaceLabel)
          self.displayingPlaceLabel = true
  
          UIView.animateWithDuration(0.4, delay: 0.0, options: [], animations: {
              self.center.x += 180
              }, completion: nil)
      } else {
          self.displayingPlaceLabel = false
          UIView.animateWithDuration(0.4, delay: 0.0, options: [], animations: {
              self.center.x -= 180
              }, completion: nil)
      }
  
  }
  </code></pre>
  
  <p>Somehow the placeContainerView is not recognising the taps and does not return any print statements when clicked.</p>
  
  <p>Any ideas? Thanks for your help!</p>