Loosing NSNumber and int property values when calling the UITableView methods for a second time
===

Why is it that the methods of the table view are called twice? For example numberOfRowsInSection is called twice with section 0.

In this case I created a class called BDSBDA which has a NSNumber property called seccion. When numberOfRowsInSection is called for the first time bdsbda.seccion has the correct value, but the second time its lost. There are other NSString properties in BDSBDA and they remain with the correct value in both calls.

This is the numberOfRowsInSection Code

    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
    {
        // Return the number of rows in the section.
      int Filas = 0;
      for (int i = 0 ; i<[thePopoverArray count]-1; i++) {
        BDSBDA *bdsbda = (BDSBDA *)[thePopoverArray objectAtIndex:i];
        if ([bdsbda.seccion intValue] == section + 1)
        {
          Filas++;
        }
      }
      return Filas;
    }

This is the way I call this table view inside a popover:

  

    if (self.popoverController == nil) {
        TableViewController *tableViewController = 
        [[TableViewController alloc]      
         initWithNibName:@"TableViewController" 
         bundle:[NSBundle mainBundle]array:anArray originalWordArray:anotherArray ArrayIDAcepciones:anotherArray2]; 
        
        UINavigationController *navController = 
        [[UINavigationController alloc] 
         initWithRootViewController:tableViewController];
        
        UIPopoverController *popover = 
        [[UIPopoverController alloc] 
         initWithContentViewController:navController]; 
        
        popover.delegate = self;
        [tableViewController release];
        [navController release];
        
        self.popoverController = popover;
        [popover release];
      }
      [self.popoverController presentPopoverFromRect:selectionStartRect inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; 

Finally, this is the way I'm creating BDSBDA

    @interface BDSBDA : NSObject{
      NSNumber *fila;
      NSNumber *seccion;
      NSString *szTira;
      NSString *szTiraSeccion;
      NSString *parteOrac;
    }
    -(id)InitForFila:(NSNumber *)laFila seccion:(NSNumber *)laSeccion szTira:(NSString *)laTira parteOrac:(NSString *)laParteOrac szTiraSeccion:(NSString *)laTiraSeccion;
    @property (nonatomic,retain) NSNumber *fila;
    @property (nonatomic,retain) NSNumber *seccion;
    @property (nonatomic,strong) NSString *szTira;
    @property (nonatomic,strong) NSString *szTiraSeccion;
    @property (nonatomic,strong) NSString *parteOrac;
    
    @end
    @implementation BDSBDA
    @synthesize fila,seccion,szTira,parteOrac,szTiraSeccion;
    -(id)InitForFila:(NSNumber *)laFila seccion:(NSNumber *)laSeccion szTira:(NSString *)laTira parteOrac:(NSString *)laParteOrac szTiraSeccion:(NSString *)laTiraSeccion
    {
      self.fila = laFila;
      self.seccion = laSeccion;
      self.szTira = laTira;
      self.parteOrac = laParteOrac;
      self.szTiraSeccion = laTiraSeccion;
      return self;
    }
    @end