title: Transfer Array index to next controller
body: <p>I have one array.getting images from that array i want to transfer the array index to  next method how can i do this.</p>
  
  <p>my code:-</p>
  
  <pre><code>FrontsCards =[[NSMutableArray alloc]initWithCapacity:13];
      [FrontsCards insertObject:@"cloub1.png" atIndex:0];
      [FrontsCards insertObject:@"cloub2.png" atIndex:1];
      [FrontsCards insertObject:@"cloub3.png" atIndex:2];
      [FrontsCards insertObject:@"cloub4.png" atIndex:3];
      [FrontsCards insertObject:@"cloub5.png" atIndex:4];
      [FrontsCards insertObject:@"cloub6.png" atIndex:5];
      [FrontsCards insertObject:@"cloub7.png" atIndex:6];
      [FrontsCards insertObject:@"cloub8.png" atIndex:7];
      [FrontsCards insertObject:@"cloub9.png" atIndex:8];
      [FrontsCards insertObject:@"cloub10.png" atIndex:9];
      [FrontsCards insertObject:@"cloub11.png" atIndex:10];
      [FrontsCards insertObject:@"cloub12.png" atIndex:11];
      [FrontsCards insertObject:@"cloub13.png" atIndex:12];
  </code></pre>
  
  <p>randomly fetched all the images and store the imageview scroll vertically</p>
  
  <pre><code>    randIdx=arc4random()%[FrontsCards count];
  
      NSString *imageName=[FrontsCards objectAtIndex:randIdx];
  
     [ImgView setImage:[UIImage imageNamed:imageName]];
  </code></pre>
  
  <p>if the user douuble tapped on cloub12.png image i want to genrate the 11 index value and transfer it to the next view controller.
  if user tapped cloub4 index genrate the 3 </p>
  
  <p>how may i do this thanks in advance.</p>