section recieving cell values of other section
<p>i am trying to get the first five card in one section and other five in next section of table view . actually i have done parsing and unable to get proper cell values. The thing i am getting is combined values for example : in section = 'birthday' cell values are 'card1', 'card2' and again 'card1' ,'card 2' of 'new year section', and in other section samething is rpeating. what should i do to make grouped i.e card1 , card 2 in birthday section and card1, card2  shud be in new year section.
here is my code:</p>

<pre>
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 2;
    NSLog(@"section in rv");
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
        return [appDelegate.books count];
        NSLog(@".....appDelegate.books count");
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

    NSLog(@"cell for index path");
    static NSString *CellIdentifier = @"Cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil)
      {
        cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
              }
    Book *aBook = [appDelegate.books objectAtIndex:indexPath.row];
    NSLog(@"text for cell...");
    cell.text = aBook.Subcatname;
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    return cell;
    [appDelegate release];
  }
</pre>
