title: Accessing array from different view controller
body: <p>I have two classes. First one downloads data images and adds them to array one after another. When it's done with all 16 of them runs action to switch view to the second one. My problem here is how to access the array from first class in second class?</p>
  
  <p>Here is the code:</p>
  
  <p><strong>first.h</strong></p>
  
  <pre><code>@interface first{
      NSMutableArray *imagesArray;
  }
  @property(nonatomic,retain)NSMutableArray *imagesArray;
  </code></pre>
  
  <p>(array is synthetized in .m file)</p>
  
  <p><strong>second.h</strong></p>
  
  <pre><code>#import"second";
  #import"first.h"
  </code></pre>
  
  <p><strong>second.m</strong></p>
  
  <pre><code>-(void) viewdidload {
      first *another = [[another alloc] init];
      label.text =  [NSString stringWithFromat:@"%i",[another.imagesArray count]];
      imageView.image = [another.imagesArray objectAtIndex:0];
  }
  </code></pre>
  
  <p><code>label</code> shows 0 and <code>imageView</code> shows nothing. Any ideas?</p>