title: How to load array into a UITableView, not TableViewController
body: <p>I am trying to take an array that I loaded from another viewer and put it into a UITableView, not a TableViewController.  I don't know how I would do this.  Right now I have this code: </p>
  
  <p>CRHCommentSection.m</p>
  
  <pre><code>#import "CRHCommentSection.h"
  #import "CRHViewControllerScript.h"
  
  @interface CRHCommentSection ()
  
  @end
  
  @implementation CRHCommentSection
  @synthesize observationTable;
  
  NSArray *myArray; 
  
  
  - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
   {
  self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
  if (self) {
      // Custom initialization
  }
  return self;
  }
  
  
  - (void)viewDidLoad
      {
  
  
      myArray = [CRHViewControllerScript theArray];
      NSLog(@"%@", myArray);
      //NSArray* paths = [NSArray arrayWithObject:[NSIndexPath indexPathForRow:0   inSection:1]];
      //[observationTable insertRowsAtIndexPaths:paths   withRowAnimation:UITableViewRowAnimationTop];
  
  
      [super viewDidLoad];
      // Do any additional setup after loading the view.
  
  }
  
  - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
      // Return the number of sections.
  
      NSLog(@" in method 1");
      return 1;
  }
  
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  
      NSLog(@" in method 2");
     // Return the number of rows in the section.
     return [myArray count];
  
  
     }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath    *)indexPath {
  
      NSLog(@" in method 3");
  
      static NSString *CellIdentifier = @"Cell";
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
      if (cell == nil) {
      cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault   reuseIdentifier:CellIdentifier];
      }
  
      cell.textLabel.text = [myArray objectAtIndex:indexPath.row];    
      return cell;
  }
  </code></pre>
  
  <p>CRHCommentSection.h</p>
  
  <pre><code>    #import &lt;UIKit/UIKit.h&gt;
  
  
  @interface CRHCommentSection : UIViewController
  
  @property (weak, nonatomic) IBOutlet UITableView *observationTable;
  
  
  
  @end
  </code></pre>