title: how pass array value on other class for display data in iphone
body: <p>Hi friends thank for helping to me 
   I have doubt when i pass one array value for display on other controller class in <code>tableView</code> so I get <code>nil</code> value on that controller how to take <code>array</code> value on that <code>class</code> of other <code>controller</code> for display purpose</p>
  
  <p>my <code>lstAirports</code> is a array which created on <code>Airport.h</code> and my <code>Airport.h</code> is simple class is not <code>delegate</code> the code of this class:</p>
  
  <pre><code>- (void)connectionDidFinishLoading:(NSURLConnection *)connection 
  {
  
      loginStatus = [[NSString alloc] initWithBytes: [webData mutableBytes] length:[webData length] encoding:NSUTF8StringEncoding]; 
      [connection release];
      NSString *regexString = @"Stations\\[""(.*)""\\] = new Station\\((.*)new Array\\((.*)\\)\\);";
      matchArray = [loginStatus arrayOfCaptureComponentsMatchedByRegex:regexString];
      //NSLog(@"matchArray: %@", matchArray);
      lstAirports = [[NSMutableArray alloc] initWithCapacity:[matchArray count]];
  
      for (int i = 0; i &lt; [matchArray count]; i++) {
          airport *air=[[airport alloc]init];
  
          //code
          NSString *temp=[[matchArray objectAtIndex: i] objectAtIndex: 1];
          NSString *newString=[temp stringByReplacingOccurrencesOfString:@"\"" withString:@""];
          arrParts=[newString componentsSeparatedByString:@","];
          air.Code =[arrParts objectAtIndex:0];
          //air.Code = [[matchArray objectAtIndex: i] objectAtIndex: 1];
          NSLog(@"air.Code: %@\n",air.Code);
  
          //name      
          temp=[[matchArray objectAtIndex: i] objectAtIndex: 2];
          newString=[temp stringByReplacingOccurrencesOfString:@"\"" withString:@""];
          arrParts=[newString componentsSeparatedByString:@","];
          air.Name=[arrParts objectAtIndex:2];
  
          NSLog(@"air.Name: %@\n",air.Name);
  
          //destination airports
          temp=[[matchArray objectAtIndex: i] objectAtIndex: 3];
          newString=[temp stringByReplacingOccurrencesOfString:@"\"" withString:@""];
          arrParts=[newString componentsSeparatedByString:@","];
          air.DestinationAirports =arrParts;
          NSLog(@"air.DestinationAirports: %@\n",air.DestinationAirports);
          [lstAirports addObject: air];
          NSLog(@"lstAirports: %@\n",lstAirports);
          //NSString *str=
          //[air release];
      }
  
  }
  
  
  
  
  - (void)dealloc {
      [super dealloc];
      [loginStatus release]; 
      //[lstAirports release];
      [webData release];
     // [window release];
  
  
  }
  
  
  
  When I pass this array on my `Odselectioncontroller.m` then I get nil value of array where I am wrong friends please help me out this is my controller class code
  
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
      // Return the number of rows in the section.
  
      return obj.lstAirports.count;
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier = @"Cell";
  
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
      if (cell == nil) {
          cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
      }
  
  
  
      airport *a=(airport*)[obj.lstAirports objectAtIndex:indexPath.row];
      NSLog(@"str:%@",a);
      cell.textLabel.text =a.Name;
  
  and `Airport` is other class where i am create name property for fetch value name from array in yhis class
  </code></pre>