title: How to store data in the tableView & update it next time
body: <pre><code>-(IBAction)btnSaveScore:(id)sender
  {
     if(!dictWinData)
        dictWinData = [[NSMutableDictionary alloc] init];
  
  
      array = [NSMutableArray arrayWithObjects:txt_EnterName.text,
                                               [NSString stringWithFormat:@"%i",iTap], nil];
  
      int increment = 0;
  
      NSLog(@"array data is:--&gt; %@",array);
  
      for (int intWinData = 1; intWinData &lt; [array count]; intWinData++)
      {
          [dictWinData setObject:array forKey:[NSString stringWithFormat:@"NameScore%d",increment]];
          increment++;
      }
  }
  </code></pre>
  
  <p>This is the code to add my score of the game with name.</p>
  
  <pre><code>- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
      return [dictWinData 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];
  
          ArrStr = [dictWinData valueForKey:[NSString stringWithFormat:@"NameScore%d",indexPath.row]];
          UILabel *lblDayName = [[UILabel alloc] initWithFrame:CGRectMake(10, 50, 160, 21)];
          lblDayName.text = [ArrStr objectAtIndex:0];
          lblDayName.textColor = [UIColor blackColor];
          lblDayName.font = [UIFont boldSystemFontOfSize:17.0];
          lblDayName.backgroundColor = [UIColor clearColor];
          [cell.contentView addSubview:lblDayName];
          [lblDayName release];
  
          UILabel *lblLow = [[UILabel alloc] initWithFrame:CGRectMake(180, 50, 40, 21)];
          lblLow.text = [ArrStr objectAtIndex:1];
          lblLow.textColor = [UIColor blackColor];
          lblLow.font = [UIFont boldSystemFontOfSize:17.0];
          lblLow.backgroundColor = [UIColor clearColor];
          [cell.contentView addSubview:lblLow];
          [lblLow release];
      }
  return cell;
  }
  </code></pre>
  
  <p>This is storing name &amp; score of the player but each time it displays only one record in the table.</p>
  
  <p>It must show the last top ten scores in the list.</p>
  
  <p>Main problem is that this is not storing &amp; showing every score data.</p>
  
  <p>Please guide me to solve this problem.</p>
  
  <p>Thanks in advance.</p>