title: Using UITableViewCell in a UITableView
body: <p>I'm a little confused with something. I'm trying to create a custom cell and I want to use the interface builder way. </p>
  
  <p>The normal way I create a table is to have the table as:</p>
  
  <p>.h</p>
  
  <pre><code>@interface AssessList : UIViewController {
  
      IBOutlet UITableView *tblAssessList;
  }
  
  @property(nonatomic, retain) UITableView *tblAssessList;
  
  @end
  </code></pre>
  
  <p>.m</p>
  
  <pre><code>- (NSInteger)
  numberOfSectionsInTableView:(UITableView *)tableView {
      return groupArray.count;
  }
  
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
       return totalArray.count;
  }
  
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
      static NSString *CellIdentifier = @"Cell";
  
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
      if (cell == nil) {
          cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
      }
  
  
  
      cell.textLabel.text = @"I am the text....";
  
          return cell;
  }
  </code></pre>
  
  <p>Now i've created a new class for the cell and I think I understand how to put that in. But can I leave the .h as</p>
  
  <pre><code>@interface AssessList : UIViewController
  </code></pre>
  
  <p>or does the class/nib with the full table on it <strong>have</strong> to be a UITableViewController? </p>
  
  <p>Tom</p>