title: How to clear textfield when row in UITableView is selected?
body: <p>I have a table that enters in a string (from the table's cell label) wherever the user has a cursor - so functions like a keyboard with strings as the keys instead of individual characters. </p>
  
  <p>I want to be able to delete that same string from whatever textfield the user is in (e.g., Safari address bar) if the user clicks on the same row twice OR clicks a different row after selecting the first.</p>
  
  <p>The code below inserts the text upon first clicking the row - how do I delete that exact text when clicking the row twice, or selecting a different row? </p>
  
  <p>Note that the string to be inserted are all different sizes.</p>
  
  <pre><code>func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
          var string = buttonTitles[indexPath.row]
          (textDocumentProxy as! UIKeyInput).insertText("\(string)")
  }
  </code></pre>