title: iOS: TableView inside TableView cell not scrolling
body: <p>I have a tableview inside a tableview cell. I am unable scroll that table. I have also attached the screenshot of the table Here is my code:</p>
  <pre><code>- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString 
     *)reuseIdentifier
   {
  self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  if (self) {
      // Initialization code
      self.frame = CGRectMake(0, 0, 300, 50);
      self.subMenuTableView = [[UITableView alloc]initWithFrame:CGRectZero style:UITableViewStylePlain];
      self.subMenuTableView.tag = 100;
      self.subMenuTableView.delegate = self;
      self.subMenuTableView.dataSource = self;
      self.subMenuTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
      self.subMenuTableView.bounces = NO;
      self.subMenuTableView.scrollEnabled = YES;
      self.subMenuTableView.alwaysBounceVertical = NO;
      [self addSubview:self.subMenuTableView]; // add it cell
  }
  return self;
  }
  
  - (void)layoutSubviews
  {
  [super layoutSubviews];
  //UITableView *subMenuTableView =(UITableView *) [self viewWithTag:100];
  self.subMenuTableView.frame = CGRectMake(0.2, 0.3, self.bounds.size.width-5,    self.bounds.size.height-5);//set the frames for tableview
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/LWYcM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LWYcM.png" alt="enter image description here" /></a></p>