title: iPhone SDK: How do I pass an array of values from a ViewController onto other ViewController?
body: <p>I tried creating a method like below in <code>SecondViewController</code>:</p>
  
  <pre><code>-(void)setValue:(NSMutableArray*)array
   { 
        //NSMutableArray *newArray = [[NSMutableArray alloc] init];
        newArray = [array retain];
   }
  </code></pre>
  
  <p>and passing the value from <code>FirstViewController</code> using an object of <code>SecondViewController</code> named second:</p>
  
  <pre><code>[second setValue:existingArray];
  </code></pre>
  
  <p><code>existingArray</code> is an NSMutableArray.</p>
  
  <p>What could be wrong?</p>