title: NSMutableArray objectatindex always shows the last Object
body: <p>my problem is that my <code>NSMutableArray</code> always get the last element with the <code>objectatindex</code>-method.</p>
  
  <p>I have an array with some classes derived from <code>UIViewController</code>. I want to show one View after another. </p>
  
  <p>first i fill the array:</p>
  
  <pre><code>ContactViewController *ContactView = [[ContactViewController alloc]init];
  QuestionViewController *QuesView = [[QuestionViewController alloc]init];;
  ContactView.mydelegate = self;
  [QuesView setDelegate:self];
  
  
  [Views addObject:ContactView];
  
  Views =[[NSMutableArray alloc]initWithCapacity:11];
  for (int i = 0; i &lt; 11; i++) {
      [QuesView setParam:@"text" :i ];
      [Views addObject:QuesView];
  }
  </code></pre>
  
  <p>after that i want to get the actual view and jump to the next like that:</p>
  
  <pre><code>-(IBAction)Button:(id)sender
  {
  
      UIViewController *newView = [[UIViewController alloc]init];
      newView =  (UIViewController*)[Views objectAtIndex:enumerator];
      [self presentViewController:newView animated:YES completion: nil];
      enumerator++;
       //dismiss old view here....
  
      NSLog(@"number %d",[newView getNumber]);
  }
  </code></pre>
  
  <p>the new view is not shown and the number in the log is always the last number of the array. I tried to go with a for loop through all element in "Views" but there is always the last number in every object....</p>
  
  <p>any hints?</p>