title: UITextField Tap Detection
body: <p>I have been having issues regarding having a tap event on my textfield. I have tried almost everything. Almost. From including the textfield delegate to calling it, to making the textfield into an action, all the way to adding UIGestureRecognizers and using the made selector in a function form.  </p>
  
  <p>my textfield is also in another swift file as it is inside a custom cell. I would very much appreciate if anyone could help me on this issue. I have been searching for a while now. </p>
  
  <p>There isn't really any reason to show code since all that I'd like is to have some code execute once the user is inside the textview and typing. I know that the UITextViewDelegate handles this wonderfully, but it isn't working for me. The code is being done inside the custom cell file. I'm doing something incorrect I believe. I have added the</p>
  
  <pre><code>func textFieldDidBeginEditing(textField: UITextField) {
  
      }
  </code></pre>
  
  <p>but I have no idea on how to connect my textview to that function.
  Also, when I use the </p>
  
  <pre><code>var text_view_tap_gesture = UITapGestureRecognizer(target: self, action: Selector("tapped:"))
      textfield.addGestureRecognizer(text_view_tap_gesture)
  </code></pre>
  
  <p>it doesn't register anything whatsoever.</p>
  
  <p>Any help would be very much appreciated. Thanks. </p>