title: add image from array to UIimageView in prototype Cell
body: <p>I have an array of images declared as such:</p>
  
  <pre><code>menuArray = [[NSMutableArray alloc] init];
  [menuArray addObject:[UIImage imageNamed:@"one image.png"]];
  [menuArray addObject:[UIImage imageNamed:@"another image.png"]];
  [menuArray addObject:[UIImage imageNamed:@"and another.png"]];
  [menuArray addObject:[UIImage imageNamed:@"and one more.png"]];
  </code></pre>
  
  <p>I've then determined the length of the table required like so:</p>
  
  <pre><code>-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
      return [menuArray count];
  }
  </code></pre>
  
  <p>Ive built my custom prototype cell (containing only one UIImageView), set the identifier to "thiscell"</p>
  
  <p>here is my .h file:</p>
  
  <pre><code>@interface RoadSafetyAppViewController : UIViewController &lt;MFMailComposeViewControllerDelegate, UITableViewDelegate, UITableViewDataSource&gt;{
      IBOutlet UITableView *tableView;
      NSMutableArray *menuArray;
  }
  @property (strong, nonatomic) IBOutlet UIImageView *backgroundImage;
  @property (strong, nonatomic) UIApplication *application;
  </code></pre>
  
  <p>so I've started writing the method to place each image into the UIImageView in the custom Prototype Cell, as below:</p>
  
  <pre><code>-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier: @"thiscell"];// warning here about local declaration of 'tableView' hides instance variable
      //what do i put in here?
      return cell;
  }
  </code></pre>
  
  <p>What do i need to put in to get the images into the UIImageView? Also, there is a warning (indicated above) about local instance declaration - any suggestions on how to fix this?</p>
  
  <p>Thanks in advance</p>