title: UITableView delegate and dataSource methods not getting called
body: <p>I have a UIView which contains a UITableView. The tableview's delegate is set to my UIView, but it never calls the delegate methods:</p>
  
  <pre><code>-(id)init {
      self = [super init];
      if (self) {
          self.tableView = [[UITableView alloc] initWithFrame:self.bounds];
          self.tableView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
          self.tableView.dataSource = self;
          self.tableView.delegate = self;
          self.tableView.scrollEnabled = NO;
          self.tableView.layer.cornerRadius = PanelCornerRadius;
          [self addSubview:self.tableView];
      }
      return self;
  }
  
  #pragma mark - UITableViewDelegate methods
  
  - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
  
      NSLog(@"height for row");
      int height = [self heightForRowAtIndexPath:indexPath];
  
      return height;
  }
  
  #pragma mark - UITableViewDataSource methods
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  
      NSLog(@"number of rows");
      if (self.manager.fetchOperation.dataFetchProblem) {
          return 1;
      }
  
      int numberOfRows = [self.delegate numberOfSectionsInPanel:self];
  
      return numberOfRows;
  }
  </code></pre>
  
  <p>I've explored every option I can think of, but can't seem to find the root of the problem.</p>
  
  <p>EDIT: Included the numberOfRowsInSection. It could potentially return 0, only it never gets that chance because the "number of rows" NSLog never gets called.</p>