title: Handling touch events to one UITableCell
body: <p>I have some UITableViewCells in which I can perform click actions. </p>
  
  <p>When a click action starts the cell will expand and a UIPickerView, UITextView or other data will be displayed. (See example images)</p>
  
  <p>When you click the TableCell again the cell will collapse and the original state will be displayed.</p>
  
  <p>Currently every cell expands when I click in a UITableViewCell with an expand action. When I click on a cell I want every other cell to be collapsed and only expand the clicked one.</p>
  
  <p><strong>Question:</strong></p>
  
  <p>How can I give my table cell, which is expanded, a state in which it will receive all touch events. (Become the first responder for the whole screen) and close it first and after the close action send the click event to the corresponding UITableViewCell.</p>
  
  <p>I have made the UITextView first responder and that will close the keyboard after it's poped up, but I want the table cell to be the handler of the click events.</p>
  
  <p><strong>Example code</strong></p>
  
  <pre><code>func togglePicker() {
      //This function is called when the UITableCell is clicked.
  
      canBecomeFirstResponder()
  
      // Some code here which adds UIPickerView, UITextView or other data.
  
      setNeedsLayout()
  }
  </code></pre>
  
  <p>I tried this code, but this cell only receives touch events which are triggered in this cell and not outside its boundaries.</p>
  
  <p><strong>Example images</strong></p>
  
  <p><a href="http://i.stack.imgur.com/NKWIT.png" rel="nofollow">Orginal cell state</a></p>
  
  <p><a href="http://i.stack.imgur.com/4qhUQ.png" rel="nofollow">First cell is expanded</a></p>