title: Can't select cells in UITableView
body: <p>I want to create a menu that appears sliding from a side of my view, so I programmatically created a UIView and a UITableView, but, when it appears I can't select the cells in my view, here's the code where I created the view and the table:</p>
  
  <pre><code>paintView=[[UIView alloc]initWithFrame:CGRectMake(0, 0, 160, 400)];
  [paintView setBackgroundColor:[UIColor clearColor]];    
  tablaConfig = [[UITableView alloc]initWithFrame:CGRectMake(-160, 0, 160, 400) style:UITableViewStylePlain];
  tablaConfig.delegate = self;
  tablaConfig.dataSource = self;
  tablaConfig.userInteractionEnabled = YES;
  tablaConfig.scrollEnabled = NO;
  tablaConfig.backgroundColor = [UIColor lightGrayColor];
  [paintView addSubview:tablaConfig];
  </code></pre>
  
  <p>And here's the code where I make the table appear and disappear:</p>
  
  <pre><code>- (IBAction)btnTablaConfig:(id)sender {
  
      if (selector) {
          if (self.view.frame.origin.x == 0) {
  
              //[self.view addSubview:paintView];
  
              [UIView beginAnimations:nil context:NULL];
              [UIView setAnimationDuration:0.5];
              CGRect rect = self.view.frame;
  
              // Move right.
              rect.origin.x += 160;
              rect.size.width -= 160;
  
              self.view.frame = rect;
              [UIView commitAnimations];
              selector = false;
              tablaConfig.userInteractionEnabled = YES;
         }
  
      }
      else {
  
          if (self.view.frame.origin.x == 160) {
              [UIView beginAnimations:nil context:NULL];
              [UIView setAnimationDuration:0.5]; // if you want to slide up the view
              CGRect rect = self.view.frame;
              rect.origin.x -= 160;
              rect.size.width += 160;
  
              self.view.frame = rect;
              [UIView commitAnimations];
              selector = true;
              tablaConfig.userInteractionEnabled = NO;
          }
          //[paintView removeFromSuperview];
      }
  }
  </code></pre>
  
  <p>Hope you can help</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>When I use this, I can select the cells, but lose the sliding effect, how can I get both?</p>
  
  <pre><code>- (IBAction)btnTablaConfig:(id)sender {
  
  if (selector) {
      [self.view addSubview:tablaConfig];
      selector = false;
  }
  else {
      [tablaConfig removeFromSuperview];
      selector = true;
  
  }
  </code></pre>